From b04201f80384496e58ce26bd746f235b1627661d Mon Sep 17 00:00:00 2001
From: buvta <12312540+buvta@users.noreply.github.com>
Date: Sat, 21 Nov 2020 15:52:51 +0800
Subject: [PATCH 01/19] =?UTF-8?q?Play=E5=B0=86win=E5=B8=B8=E9=87=8F?=
=?UTF-8?q?=E6=8F=90=E5=8F=96=E5=87=BA=E6=9D=A5=EF=BC=8C=E9=81=BF=E5=85=8D?=
=?UTF-8?q?=E9=87=8D=E5=A4=8D=E8=8E=B7=E5=8F=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Play.vue | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/src/components/Play.vue b/src/components/Play.vue
index 1ad6c4c..31c1d41 100644
--- a/src/components/Play.vue
+++ b/src/components/Play.vue
@@ -230,6 +230,7 @@ import { directive as onClickaway } from 'vue-clickaway'
import { exec, execFile } from 'child_process'
const { remote, clipboard } = require('electron')
+const win = remote.getCurrentWindow()
const PinyinMatch = require('pinyin-match')
const VIDEO_DETAIL_CACHE = {}
@@ -642,7 +643,6 @@ export default {
this.timerEvent()
},
changeVideo () {
- const win = remote.getCurrentWindow()
win.setProgressBar(-1)
this.checkStar()
this.checkTop()
@@ -652,7 +652,6 @@ export default {
const endTime = this.xg.duration
const currentTime = this.xg.currentTime
const progress = parseFloat((currentTime / endTime).toFixed(2))
- const win = remote.getCurrentWindow()
win.setProgressBar(progress)
const db = await history.find({ site: this.video.key, ids: this.video.info.id })
if (db) {
@@ -768,7 +767,6 @@ export default {
}
},
async miniEvent () {
- const win = remote.getCurrentWindow()
this.mainWindowBounds = JSON.parse(JSON.stringify(win.getBounds()))
let miniWindowBounds
await mini.find().then(res => { if (res) miniWindowBounds = res.bounds })
@@ -778,7 +776,6 @@ export default {
this.miniMode = true
},
async exitMiniEvent () {
- const win = remote.getCurrentWindow()
await mini.find().then(res => {
let doc = {}
doc = {
@@ -873,7 +870,6 @@ export default {
}
},
checkTop () {
- const win = remote.getCurrentWindow()
this.isTop = win.isAlwaysOnTop()
},
closeListEvent () {
@@ -1023,7 +1019,7 @@ export default {
if (this.xg.paused) {
this.xg.play()
// 继续播放时,隐藏进度条
- remote.getCurrentWindow().setProgressBar(-1)
+ win.setProgressBar(-1)
} else {
this.xg.pause()
}
@@ -1061,7 +1057,6 @@ export default {
return false
}
if (e === 'top') {
- const win = remote.getCurrentWindow()
if (win.isAlwaysOnTop()) {
win.setAlwaysOnTop(false)
} else {
@@ -1109,7 +1104,6 @@ export default {
return false
}
if (e === 'opacityUp') {
- const win = remote.getCurrentWindow()
const num = win.getOpacity()
if (num > 0.1) {
win.setOpacity(num - 0.1)
@@ -1117,7 +1111,6 @@ export default {
return false
}
if (e === 'opacityDown') {
- const win = remote.getCurrentWindow()
const num = win.getOpacity()
if (num < 1) {
win.setOpacity(num + 0.1)
@@ -1319,7 +1312,6 @@ export default {
})
},
videoStop () {
- const win = remote.getCurrentWindow()
win.setProgressBar(-1)
if (this.xg.fullscreen) {
this.xg.exitFullscreen()
@@ -1340,7 +1332,6 @@ export default {
}, 1000)
},
minMaxEvent () {
- const win = remote.getCurrentWindow()
win.on('minimize', () => {
if (this.xg && this.xg.hasStart) {
this.xg.pause()
From 4dc88469e8d3660bc1e38065fd7e6442fe4d4364 Mon Sep 17 00:00:00 2001
From: buvta <12312540+buvta@users.noreply.github.com>
Date: Sat, 21 Nov 2020 15:55:08 +0800
Subject: [PATCH 02/19] =?UTF-8?q?=E8=B0=83=E6=95=B4iptv=E6=93=8D=E4=BD=9C?=
=?UTF-8?q?=E5=88=97=E8=A1=A8=E5=A4=B4=EF=BC=8C=E4=B8=A4=E7=A7=8D=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA=E6=A8=A1=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/IPTV.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/IPTV.vue b/src/components/IPTV.vue
index cf878b8..dd550f1 100644
--- a/src/components/IPTV.vue
+++ b/src/components/IPTV.vue
@@ -91,7 +91,7 @@
align="right"
:width="200">
- 总频道数:{{ iptvList.length }}
+ {{ enableBatchEdit ? `频道总数:${channelList.length}` : `资源总数:${iptvList.length}` }}
置顶
From 3323a56671dae5d038bf5fa6dfeba7c887953a32 Mon Sep 17 00:00:00 2001
From: buvta <12312540+buvta@users.noreply.github.com>
Date: Sat, 21 Nov 2020 16:11:56 +0800
Subject: [PATCH 03/19] =?UTF-8?q?fix:=E7=BD=AE=E9=A1=B6=E5=9B=BE=E6=A0=87?=
=?UTF-8?q?=E8=81=94=E5=8A=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Frame.vue | 18 +++++++++++-------
src/components/Play.vue | 16 +++++++++++++---
src/store/index.js | 12 ++++++------
3 files changed, 30 insertions(+), 16 deletions(-)
diff --git a/src/components/Frame.vue b/src/components/Frame.vue
index 7e81e9b..02471c9 100644
--- a/src/components/Frame.vue
+++ b/src/components/Frame.vue
@@ -1,7 +1,7 @@
-
+
@@ -18,10 +18,14 @@
const { remote } = require('electron')
export default {
name: 'frame',
- data () {
- const win = remote.getCurrentWindow()
- return {
- isAlwaysOnTop: win.isAlwaysOnTop()
+ computed: {
+ appState: {
+ get () {
+ return this.$store.getters.getAppState
+ },
+ set (val) {
+ this.SET_APPSTATE(val)
+ }
}
},
methods: {
@@ -37,8 +41,8 @@ export default {
win.destroy()
}
if (e === 'top') {
- this.isAlwaysOnTop = !this.isAlwaysOnTop
- win.setAlwaysOnTop(this.isAlwaysOnTop)
+ this.appState.windowIsOnTop = !this.appState.windowIsOnTop
+ win.setAlwaysOnTop(this.appState.windowIsOnTop)
}
}
}
diff --git a/src/components/Play.vue b/src/components/Play.vue
index 31c1d41..7287a29 100644
--- a/src/components/Play.vue
+++ b/src/components/Play.vue
@@ -383,6 +383,14 @@ export default {
this.SET_SHARE(val)
}
},
+ appState: {
+ get () {
+ return this.$store.getters.getAppState
+ },
+ set (val) {
+ this.SET_APPSTATE(val)
+ }
+ },
setting () {
return this.$store.getters.getSetting
}
@@ -428,7 +436,7 @@ export default {
}
},
methods: {
- ...mapMutations(['SET_VIEW', 'SET_DETAIL', 'SET_VIDEO', 'SET_SHARE']),
+ ...mapMutations(['SET_VIEW', 'SET_DETAIL', 'SET_VIDEO', 'SET_SHARE', 'SET_APPSTATE']),
handleNodeClick (node) {
if (node.channel) {
this.playChannel(node.channel)
@@ -870,7 +878,7 @@ export default {
}
},
checkTop () {
- this.isTop = win.isAlwaysOnTop()
+ this.isTop = this.appState.windowIsOnTop
},
closeListEvent () {
this.right.show = false
@@ -1057,10 +1065,12 @@ export default {
return false
}
if (e === 'top') {
- if (win.isAlwaysOnTop()) {
+ if (this.appState.windowIsOnTop) {
win.setAlwaysOnTop(false)
+ this.appState.windowIsOnTop = false
} else {
win.setAlwaysOnTop(true)
+ this.appState.windowIsOnTop = true
}
return false
}
diff --git a/src/store/index.js b/src/store/index.js
index 88819d9..0b70e0d 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -26,8 +26,8 @@ export default new Vuex.Store({
key: '',
info: {}
},
- editSites: {
- sites: []
+ appState: {
+ windowIsOnTop: false
}
},
getters: {
@@ -46,8 +46,8 @@ export default new Vuex.Store({
getVideo: state => {
return state.video
},
- getEditSites: state => {
- return state.editSites
+ getAppState: state => {
+ return state.appState
}
},
mutations: {
@@ -66,8 +66,8 @@ export default new Vuex.Store({
SET_VIDEO: (state, payload) => {
state.video = payload
},
- SET_EDITSITES: (state, payload) => {
- state.editSites = payload
+ SET_APPSTATE: (state, payload) => {
+ state.appState = payload
}
}
})
From 39edb9ce35dfb563a328bbecd62c379249bae4f0 Mon Sep 17 00:00:00 2001
From: buvta <12312540+buvta@users.noreply.github.com>
Date: Sat, 21 Nov 2020 16:44:50 +0800
Subject: [PATCH 04/19] v2.6.6
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index 14d8037..9f43aae 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "zy",
- "version": "2.6.5",
+ "version": "2.6.6",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
From a8b0e7e6a834a2dbb9f61e9e4a957723f33b177e Mon Sep 17 00:00:00 2001
From: buvta <12312540+buvta@users.noreply.github.com>
Date: Sat, 21 Nov 2020 23:20:17 +0800
Subject: [PATCH 05/19] =?UTF-8?q?fix:=E7=9B=B4=E6=92=AD=E6=97=B6=E4=B8=8A?=
=?UTF-8?q?=E4=B8=8B=E5=88=87=E6=8D=A2=E9=A2=91=E9=81=93=E6=97=B6=E7=9A=84?=
=?UTF-8?q?bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Play.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/Play.vue b/src/components/Play.vue
index 7287a29..e3a39bf 100644
--- a/src/components/Play.vue
+++ b/src/components/Play.vue
@@ -673,7 +673,7 @@ export default {
},
prevEvent () {
if (this.video.iptv) {
- var index = this.channelList.findIndex(obj => obj.prefer === this.video.iptv.id)
+ var index = this.channelList.findIndex(obj => obj.id === this.video.iptv.channelID)
if (index >= 1) {
var channel = this.channelList[index - 1]
this.playChannel(channel)
@@ -691,7 +691,7 @@ export default {
},
nextEvent () {
if (this.video.iptv) {
- var index = this.channelList.findIndex(obj => obj.prefer === this.video.iptv.id)
+ var index = this.channelList.findIndex(obj => obj.id === this.video.iptv.channelID)
if (index < (this.channelList.length - 1)) {
var channel = this.channelList[index + 1]
this.playChannel(channel)
From 2dd91f78c9d665b2469e0b6e7818afb629ff21aa Mon Sep 17 00:00:00 2001
From: haiyangcui
Date: Sat, 21 Nov 2020 17:59:21 +0100
Subject: [PATCH 06/19] =?UTF-8?q?=E7=89=9B=E7=89=9B=E8=B5=84=E6=BA=90?=
=?UTF-8?q?=E5=B7=B2=E5=A4=B1=E6=95=88,=E5=88=A0=E9=99=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/lib/dexie/iniData/Sites.json | 58 +++++++++++++-------------------
1 file changed, 24 insertions(+), 34 deletions(-)
diff --git a/src/lib/dexie/iniData/Sites.json b/src/lib/dexie/iniData/Sites.json
index ad73f59..72b5bd5 100644
--- a/src/lib/dexie/iniData/Sites.json
+++ b/src/lib/dexie/iniData/Sites.json
@@ -11,16 +11,6 @@
},
{
"id": 2,
- "key": "niuniucj",
- "name": "牛牛资源",
- "api": "http://v.niuniucj.com/inc/api.php",
- "download": "",
- "group": "默认",
- "isActive": true,
- "status": "可用"
- },
- {
- "id": 3,
"key": "88zyw",
"name": "88 影视资源站",
"api": "http://www.88zyw.net/inc/api.php",
@@ -30,7 +20,7 @@
"status": "可用"
},
{
- "id": 4,
+ "id": 3,
"key": "apibdzy",
"name": "百度云资源",
"api": "https://api.apibdzy.com/api.php/provide/vod/at/xml",
@@ -40,7 +30,7 @@
"status": "可用"
},
{
- "id": 5,
+ "id": 4,
"key": "mbo",
"name": "秒播资源",
"api": "http://caiji.mb77.vip/inc/api.php",
@@ -50,7 +40,7 @@
"status": "可用"
},
{
- "id": 6,
+ "id": 5,
"key": "zuidazy",
"name": "最大资源网",
"api": "http://www.zdziyuan.com/inc/api.php",
@@ -60,7 +50,7 @@
"status": "可用"
},
{
- "id": 7,
+ "id": 6,
"key": "123ku",
"name": "123 资源",
"api": "http://cj.123ku2.com:12315/inc/api.php",
@@ -70,7 +60,7 @@
"status": "可用"
},
{
- "id": 8,
+ "id": 7,
"key": "okzy",
"name": "OK 资源网",
"api": "http://cj.okzy.tv/inc/api.php",
@@ -80,7 +70,7 @@
"status": "可用"
},
{
- "id": 9,
+ "id": 8,
"key": "kuyunzy",
"name": "酷云资源",
"api": "http://caiji.kuyun98.com/inc/ldg_api.php",
@@ -90,7 +80,7 @@
"status": "可用"
},
{
- "id": 10,
+ "id": 9,
"key": "kubozy",
"name": "酷播资源",
"api": "http://api.kbzyapi.com/inc/api.php",
@@ -100,7 +90,7 @@
"status": "可用"
},
{
- "id": 11,
+ "id": 10,
"key": "yongjiuzy",
"name": "永久资源",
"api": "http://cj.yongjiuzyw.com/inc/api.php",
@@ -110,7 +100,7 @@
"status": "可用"
},
{
- "id": 12,
+ "id": 11,
"key": "rrzy",
"name": "人人资源",
"api": "https://www.rrzyw.cc/api.php/provide/vod/from/rrm3u8/at/xml/",
@@ -120,7 +110,7 @@
"status": "可用"
},
{
- "id": 13,
+ "id": 12,
"key": "bbkdj",
"name": "步步高顶尖资源网",
"api": "http://api.bbkdj.com/api",
@@ -130,7 +120,7 @@
"status": "可用"
},
{
- "id": 14,
+ "id": 13,
"key": "solezy",
"name": "搜乐资源网",
"api": "https://www.caijizy.vip/api.php/provide/vod/at/xml/",
@@ -140,7 +130,7 @@
"status": "可用"
},
{
- "id": 15,
+ "id": 14,
"key": "zuixinzy",
"name": "最新资源",
"api": "http://api.zuixinapi.com/inc/api.php",
@@ -150,7 +140,7 @@
"status": "可用"
},
{
- "id": 16,
+ "id": 15,
"key": "605zy",
"name": "605资源",
"api": "http://www.605zy.net/inc/seacmsapi.php",
@@ -160,7 +150,7 @@
"status": "可用"
},
{
- "id": 17,
+ "id": 16,
"key": "subo988",
"name": "速播资源站",
"api": "https://www.subo988.com/inc/api.php",
@@ -170,7 +160,7 @@
"status": "可用"
},
{
- "id": 18,
+ "id": 17,
"key": "1886zy",
"name": "1886 资源",
"api": "http://cj.1886zy.co/inc/api.php",
@@ -180,7 +170,7 @@
"status": "可用"
},
{
- "id": 19,
+ "id": 18,
"key": "doubanzy",
"name": "豆瓣电影资源",
"api": "http://v.1988cj.com/inc/api.php",
@@ -190,7 +180,7 @@
"status": "可用"
},
{
- "id": 20,
+ "id": 19,
"key": "135zy",
"name": "135 资源网",
"api": "http://cj.zycjw1.com/inc/api.php",
@@ -200,7 +190,7 @@
"status": "可用"
},
{
- "id": 21,
+ "id": 20,
"key": "mgtvzy",
"name": "芒果 TV 资源网",
"api": "https://api.shijiapi.com/api.php/provide/vod/at/xml/",
@@ -210,7 +200,7 @@
"status": "可用"
},
{
- "id": 22,
+ "id": 21,
"key": "209zy",
"name": "209 资源",
"api": "http://cj.1156zy.com/inc/api.php",
@@ -220,7 +210,7 @@
"status": "可用"
},
{
- "id": 23,
+ "id": 22,
"key": "kkzy",
"name": "快快资源",
"api": "https://api.kkzy.tv/inc/api.php",
@@ -230,7 +220,7 @@
"status": "可用"
},
{
- "id": 24,
+ "id": 23,
"key": "wolongzy",
"name": "卧龙资源",
"api": "http://cj.wlzy.tv/inc/api_mac.php",
@@ -240,7 +230,7 @@
"status": "可用"
},
{
- "id": 25,
+ "id": 24,
"key": "mokazy",
"name": "魔卡资源网",
"api": "https://cj.heiyap.com/api.php/provide/vod/at/xml/",
@@ -250,7 +240,7 @@
"status": "可用"
},
{
- "id": 26,
+ "id": 25,
"key": "158zy",
"name": "壹伍捌资源网",
"api": "http://cj.158zyz.net:158/inc/api.php",
@@ -260,7 +250,7 @@
"status": "可用"
},
{
- "id": 27,
+ "id": 26,
"key": "kyzy",
"name": "快影资源站",
"api": "https://www.kyzy.tv/api.php/kyyun/vod/at/xml/",
From da22abd25d116079ab87e01ded6374d5913c5e23 Mon Sep 17 00:00:00 2001
From: haiyangcui
Date: Sat, 21 Nov 2020 18:35:56 +0100
Subject: [PATCH 07/19] =?UTF-8?q?=E9=81=BF=E5=85=8D=E4=B8=8D=E5=BF=85?=
=?UTF-8?q?=E8=A6=81=E7=9A=84=E8=B5=84=E6=BA=90=E8=AE=BF=E9=97=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Film.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/Film.vue b/src/components/Film.vue
index e0c19d3..0686a46 100644
--- a/src/components/Film.vue
+++ b/src/components/Film.vue
@@ -494,7 +494,7 @@ export default {
const type = this.type.tid
const page = this.pagecount
this.statusText = ' '
- if (key && page < 1) { // OK资源前几类硬是去不掉
+ if (key === undefined || page < 1 || type === undefined) { // OK资源前几类硬是去不掉
$state.complete()
this.statusText = '暂无数据'
return false
From a5c8d206355f25e7524a2bd278e215933b2ea8ea Mon Sep 17 00:00:00 2001
From: haiyangcui
Date: Sat, 21 Nov 2020 18:39:33 +0100
Subject: [PATCH 08/19] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=BA=BB=E8=8A=B1?=
=?UTF-8?q?=E8=B5=84=E6=BA=90=E7=9A=84api=E9=93=BE=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/lib/dexie/iniData/Sites.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/dexie/iniData/Sites.json b/src/lib/dexie/iniData/Sites.json
index 72b5bd5..0c58305 100644
--- a/src/lib/dexie/iniData/Sites.json
+++ b/src/lib/dexie/iniData/Sites.json
@@ -3,7 +3,7 @@
"id": 1,
"key": "mahuazy",
"name": "麻花资源",
- "api": "https://www.mhapi123.com/inc/api.php",
+ "api": "http://www.mhapi123.com/inc/ldg_api.php",
"download": "",
"group": "默认",
"isActive": true,
From eff69db0633b52a52741bde768143c130d811902 Mon Sep 17 00:00:00 2001
From: haiyangcui
Date: Sat, 21 Nov 2020 18:52:33 +0100
Subject: [PATCH 09/19] =?UTF-8?q?infiniteId=E4=BC=9A=E5=9C=A8classClick?=
=?UTF-8?q?=E9=87=8C=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Film.vue | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/components/Film.vue b/src/components/Film.vue
index 0686a46..7a42770 100644
--- a/src/components/Film.vue
+++ b/src/components/Film.vue
@@ -425,7 +425,6 @@ export default {
this.classList = []
this.type = {}
this.getClass().then(res => {
- this.infiniteId += 1
this.classClick(this.classList[0].name)
})
}
From f92af48a4ea9ea2cf11b9e8e2c714ec860dd5558 Mon Sep 17 00:00:00 2001
From: haiyangcui
Date: Sat, 21 Nov 2020 19:07:05 +0100
Subject: [PATCH 10/19] =?UTF-8?q?mini=E6=A8=A1=E5=BC=8F,=E5=A4=A7=E5=B0=8F?=
=?UTF-8?q?=E7=9B=B4=E6=8E=A5=E8=AE=BE=E7=BD=AE=E4=B8=BA=E5=BD=93=E5=89=8D?=
=?UTF-8?q?=E7=AA=97=E5=8F=A3=E5=A4=A7=E5=B0=8F,=E6=97=A0=E9=9C=80?=
=?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=88=B0=E6=95=B0=E6=8D=AE=E5=BA=93=E4=B8=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Play.vue | 19 ++-----------------
src/lib/dexie/dexie.js | 2 --
2 files changed, 2 insertions(+), 19 deletions(-)
diff --git a/src/components/Play.vue b/src/components/Play.vue
index e3a39bf..533c223 100644
--- a/src/components/Play.vue
+++ b/src/components/Play.vue
@@ -221,7 +221,7 @@