From 36efdcd869a1d68ec98b3a52d6376cbacc259c71 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Sun, 27 Dec 2020 21:53:24 +0100 Subject: [PATCH] =?UTF-8?q?sites=E6=95=B0=E6=8D=AE=E5=BC=95=E5=85=A5jiexiU?= =?UTF-8?q?rl=E6=95=B0=E6=8D=AE=E6=AE=B5,=E6=92=AD=E6=94=BE=E6=97=B6?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E8=A7=A3=E6=9E=90=E6=97=B6,=E4=B8=8D?= =?UTF-8?q?=E5=90=8C=E6=BA=90=E5=8F=AF=E4=BB=A5=E5=AE=9A=E4=B9=89=E4=B8=8D?= =?UTF-8?q?=E5=90=8C=E7=9A=84=E8=A7=A3=E6=9E=90=E7=BD=91=E7=AB=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/EditSites.vue | 7 ++ src/components/Play.vue | 8 +- src/lib/dexie/dexie.js | 7 ++ src/lib/dexie/iniData/Sites.json | 167 +++++++++++++++++++------------ 4 files changed, 120 insertions(+), 69 deletions(-) diff --git a/src/components/EditSites.vue b/src/components/EditSites.vue index 6d6e5e8..5ebbb66 100644 --- a/src/components/EditSites.vue +++ b/src/components/EditSites.vue @@ -94,6 +94,9 @@ + + + @@ -133,6 +136,7 @@ export default { name: '', api: '', download: '', + jiexiUrl: '', group: '', isActive: true }, @@ -271,6 +275,7 @@ export default { name: '', api: '', download: '', + jiexiUrl: '', group: '', isActive: true } @@ -329,6 +334,7 @@ export default { name: this.siteInfo.name, api: this.siteInfo.api, download: this.siteInfo.download, + jiexiUrl: this.siteInfo.jiexiUrl, group: this.siteInfo.group, isActive: this.siteInfo.isActive } @@ -339,6 +345,7 @@ export default { name: '', api: '', download: '', + jiexiUrl: '', group: '' } this.dialogType === 'edit' ? this.$message.success('修改成功!') : this.$message.success('新增源成功!') diff --git a/src/components/Play.vue b/src/components/Play.vue index 7d66a9f..70f15d4 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -9,8 +9,8 @@
+ frameborder="0" scrolling="no" allow='autoplay;fullscreen'> +
@@ -582,8 +582,8 @@ export default { const url = m3u8Arr[index] if (!url.endsWith('.m3u8')) { const currentSite = await sites.find({ key: this.video.key }) - if (currentSite.api.includes('www.cqzyw.net')) { - this.onlineUrl = 'http://vip.cqzyw.net/?url=' + url + if (currentSite.jiexiUrl) { + this.onlineUrl = currentSite.jiexiUrl + url } else { this.onlineUrl = 'https://jx.7kjx.com/?url=' + url } diff --git a/src/lib/dexie/dexie.js b/src/lib/dexie/dexie.js index 41b7ab0..f3ee8f8 100644 --- a/src/lib/dexie/dexie.js +++ b/src/lib/dexie/dexie.js @@ -28,6 +28,13 @@ db.version(6).stores({ shortcut: '++id, name, key, desc' }).upgrade(async tx => { await tx.shortcut.bulkAdd(localKey) + +db.version(7).stores({ + sites: '++id, key, name, api, download, jiexiUrl, isActive, group' +}).upgrade(trans => { + trans.sites.toCollection().modify(site => { + site.jiexiUrl = '' + }) }) db.on('populate', () => { diff --git a/src/lib/dexie/iniData/Sites.json b/src/lib/dexie/iniData/Sites.json index 599cfe7..5c80ce2 100644 --- a/src/lib/dexie/iniData/Sites.json +++ b/src/lib/dexie/iniData/Sites.json @@ -5,6 +5,7 @@ "name": "麻花资源", "api": "http://www.mhapi123.com/inc/ldg_api.php", "download": "", + "jiexiUrl": "", "group": "默认", "isActive": true, "status": "可用" @@ -15,6 +16,7 @@ "name": "1886 资源", "api": "http://cj.1886zy.co/inc/api.php", "download": "", + "jiexiUrl": "", "group": "默认", "isActive": true, "status": "可用" @@ -25,148 +27,183 @@ "name": "123 资源", "api": "http://cj.123ku2.com:12315/inc/api.php", "download": "", + "jiexiUrl": "", "group": "默认", "isActive": true, "status": "可用" }, { "id": 4, + "key": "alizy", + "name": "阿里云资源", + "api": "http://www.cqzyw.net:88/api.php/provide/vod/at/xml/", + "download": "", + "jiexiUrl": "http://vip.cqzyw.net/?url=", + "group": "默认", + "isActive": true, + "status": "可用" + }, + { + "key": "7K资源", + "id": 5, + "name": "7K资源", + "api": "https://zy.7kjx.com/cjapi.php", + "download": "", + "jiexiUrl": "https://jx.7kjx.com/?url=", + "group": "默认", + "isActive": true + }, + { + "key": "1717云资源网", + "id": 6, + "name": "1717云资源网", + "api": "http://zy.itono.cn/inc/api.php", + "download": "", + "jiexiUrl": "https://www.1717yun.com/jiexi/?url=", + "group": "默认", + "isActive": true + }, + { + "id": 7, "key": "subo988", "name": "速播资源站", "api": "https://www.subo988.com/inc/api.php", "download": "", - "group": "默认", - "isActive": true, - "status": "可用" - }, - { - "id": 5, - "key": "88zyw", - "name": "88 影视资源站", - "api": "http://www.88zyw.net/inc/api.php", - "download": "", - "group": "默认", - "isActive": true, - "status": "可用" - }, - { - "key": "zuidazy", - "id": 6, - "name": "最大资源网", - "api": "http://www.zdziyuan.com/inc/ldg_sea.php", - "download": "http://www.zdziyuan.com/inc/apidown.php", - "group": "默认", - "isActive": true, - "status": "可用" - }, - { - "key": "mbo", - "id": 7, - "name": "秒播资源", - "api": "http://caiji.mb77.vip/inc/seacmsapi.php", - "download": "", + "jiexiUrl": "", "group": "默认", "isActive": true, "status": "可用" }, { "id": 8, - "key": "apibdzy", - "name": "百度云资源", - "api": "https://api.apibdzy.com/api.php/provide/vod/at/xml", + "key": "88zyw", + "name": "88 影视资源站", + "api": "http://www.88zyw.net/inc/api.php", "download": "", + "jiexiUrl": "", "group": "默认", "isActive": true, "status": "可用" }, { + "key": "zuidazy", "id": 9, - "key": "okzy", - "name": "OK 资源网", - "api": "http://cj.okzy.tv/inc/api.php", - "download": "http://cj.okzy.tv/inc/apidown.php", + "name": "最大资源网", + "api": "http://www.zdziyuan.com/inc/ldg_sea.php", + "download": "http://www.zdziyuan.com/inc/apidown.php", + "jiexiUrl": "", "group": "默认", "isActive": true, "status": "可用" }, { + "key": "mbo", "id": 10, - "key": "kuyunzy", - "name": "酷云资源", - "api": "http://caiji.kuyun98.com/inc/ldg_api.php", - "download": "http://caiji.kuyun98.com/inc/apidown.php", + "name": "秒播资源", + "api": "http://caiji.mb77.vip/inc/seacmsapi.php", + "download": "", + "jiexiUrl": "", "group": "默认", "isActive": true, "status": "可用" }, { "id": 11, - "key": "kubozy", - "name": "酷播资源", - "api": "http://api.kbzyapi.com/inc/api.php", + "key": "apibdzy", + "name": "百度云资源", + "api": "https://api.apibdzy.com/api.php/provide/vod/at/xml", "download": "", + "jiexiUrl": "", "group": "默认", "isActive": true, "status": "可用" }, { "id": 12, - "key": "yongjiuzy", - "name": "永久资源", - "api": "http://cj.yongjiuzyw.com/inc/api.php", - "download": "", + "key": "okzy", + "name": "OK 资源网", + "api": "http://cj.okzy.tv/inc/api.php", + "download": "http://cj.okzy.tv/inc/apidown.php", + "jiexiUrl": "", "group": "默认", "isActive": true, "status": "可用" }, { "id": 13, - "key": "rrzy", - "name": "人人资源", - "api": "https://www.rrzyw.cc/api.php/provide/vod/from/rrm3u8/at/xml/", - "download": "", + "key": "kuyunzy", + "name": "酷云资源", + "api": "http://caiji.kuyun98.com/inc/ldg_api.php", + "download": "http://caiji.kuyun98.com/inc/apidown.php", + "jiexiUrl": "", "group": "默认", "isActive": true, "status": "可用" }, { "id": 14, - "key": "bbkdj", - "name": "步步高顶尖资源网", - "api": "http://api.bbkdj.com/api", + "key": "kubozy", + "name": "酷播资源", + "api": "http://api.kbzyapi.com/inc/api.php", "download": "", + "jiexiUrl": "", "group": "默认", "isActive": true, "status": "可用" }, { "id": 15, - "key": "zuixinzy", - "name": "最新资源", - "api": "http://api.zuixinapi.com/inc/api.php", + "key": "yongjiuzy", + "name": "永久资源", + "api": "http://cj.yongjiuzyw.com/inc/api.php", "download": "", + "jiexiUrl": "", "group": "默认", "isActive": true, "status": "可用" }, { "id": 16, - "key": "209zy", - "name": "209 资源", - "api": "http://cj.1156zy.com/inc/api.php", + "key": "rrzy", + "name": "人人资源", + "api": "https://www.rrzyw.cc/api.php/provide/vod/from/rrm3u8/at/xml/", "download": "", + "jiexiUrl": "", "group": "默认", "isActive": true, "status": "可用" }, { "id": 17, - "key": "alizy", - "name": "阿里云资源", - "api": "http://www.cqzyw.net:88/api.php/provide/vod/at/xml/", + "key": "bbkdj", + "name": "步步高顶尖资源网", + "api": "http://api.bbkdj.com/api", "download": "", + "jiexiUrl": "", + "group": "默认", + "isActive": true, + "status": "可用" + }, + { + "id": 18, + "key": "zuixinzy", + "name": "最新资源", + "api": "http://api.zuixinapi.com/inc/api.php", + "download": "", + "jiexiUrl": "", + "group": "默认", + "isActive": true, + "status": "可用" + }, + { + "id": 19, + "key": "209zy", + "name": "209 资源", + "api": "http://cj.1156zy.com/inc/api.php", + "download": "", + "jiexiUrl": "", "group": "默认", "isActive": true, "status": "可用" } -] +] \ No newline at end of file