From c082986e090738295689a6f1d5f3d8c733f72e1a Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Wed, 11 Nov 2020 08:29:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B2=BE=E7=AE=80=E6=A8=A1=E5=BC=8F=E5=BC=95?= =?UTF-8?q?=E5=85=A5mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 2 ++ src/lib/dexie/dexie.js | 2 +- src/mini/Mini.vue | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index af62fbf..36175b6 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -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 } } diff --git a/src/lib/dexie/dexie.js b/src/lib/dexie/dexie.js index ee5f314..79955a1 100644 --- a/src/lib/dexie/dexie.js +++ b/src/lib/dexie/dexie.js @@ -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' }) diff --git a/src/mini/Mini.vue b/src/mini/Mini.vue index 9ffb39c..b72c242 100644 --- a/src/mini/Mini.vue +++ b/src/mini/Mini.vue @@ -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