mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-09 15:52:40 +08:00
精简模式引入mode
This commit is contained in:
@@ -630,6 +630,7 @@ export default {
|
||||
if (!this.video.iptv) {
|
||||
doc = {
|
||||
id: 0,
|
||||
mode: 'video',
|
||||
site: this.video.key,
|
||||
ids: this.video.info.id,
|
||||
name: this.video.info.name,
|
||||
@@ -639,6 +640,7 @@ export default {
|
||||
} else {
|
||||
doc = {
|
||||
id: 0,
|
||||
mode: 'iptv',
|
||||
url: this.video.iptv.url
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ db.version(4).stores({
|
||||
recommendation: '++id, [key+ids], site, name, detail, index, rate, hasUpdate',
|
||||
sites: '++id, key, name, api, download, isActive, group',
|
||||
history: '++id, [site+ids], name, type, year, index, time, duration, detail',
|
||||
mini: 'id, site, ids, name, index, time, url',
|
||||
mini: 'id, mode, site, ids, name, index, time, url',
|
||||
iptv: '++id, name, url, group, isActive'
|
||||
})
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ export default {
|
||||
},
|
||||
getUrls () {
|
||||
mini.find().then(res => {
|
||||
if (res.url) {
|
||||
if (res.mode === 'iptv') {
|
||||
this.xg.src = res.url
|
||||
this.xg.play()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user