阿里云资源站临时可用

This commit is contained in:
buvta
2020-12-27 23:51:46 +08:00
parent 3142306a0c
commit 0b4dd2e859
2 changed files with 20 additions and 5 deletions

View File

@@ -248,7 +248,7 @@ import mt from 'mousetrap'
import Clickoutside from 'element-ui/src/utils/clickoutside'
import { exec, execFile } from 'child_process'
const { remote, clipboard } = require('electron')
const { shell, remote, clipboard } = require('electron')
const win = remote.getCurrentWindow()
const PinyinMatch = require('pinyin-match')
@@ -578,10 +578,15 @@ export default {
this.isLive = false
if (document.querySelector('xg-btn-showhistory')) document.querySelector('xg-btn-showhistory').style.display = 'block'
if (document.querySelector('.xgplayer-playbackrate')) document.querySelector('.xgplayer-playbackrate').style.display = 'inline-block'
this.fetchM3u8List().then(m3u8Arr => {
this.fetchM3u8List().then(async (m3u8Arr) => {
const url = m3u8Arr[index]
if (!m3u8Arr[index].endsWith('.m3u8')) {
this.onlineUrl = 'https://jx.7kjx.com/?url=' + url
if (!url.endsWith('.m3u8')) {
const currentSite = await sites.find({ key: this.video.key })
if (currentSite.api.includes('www.cqzyw.net')) {
shell.openExternal('http://vip.cqzyw.net/?url=' + url)
} else {
this.onlineUrl = 'https://jx.7kjx.com/?url=' + url
}
} else {
this.xg.src = m3u8Arr[index]
const key = this.video.key + '@' + this.video.info.id

View File

@@ -158,5 +158,15 @@
"group": "默认",
"isActive": true,
"status": "可用"
},
{
"id": 17,
"key": "alizy",
"name": "阿里云资源",
"api": "http://www.cqzyw.net:88/api.php/provide/vod/at/xml/",
"download": "",
"group": "默认",
"isActive": true,
"status": "可用"
}
]
]