Compare commits

...

20 Commits

Author SHA1 Message Date
Hunlongyu
68fd0d0c6a Merge pull request #789 from Hunlongyu/dependabot/npm_and_yarn/ejs-3.1.8
Bump ejs from 3.1.3 to 3.1.8
2022-09-27 08:47:03 +08:00
dependabot[bot]
a95403849d Bump ejs from 3.1.3 to 3.1.8
Bumps [ejs](https://github.com/mde/ejs) from 3.1.3 to 3.1.8.
- [Release notes](https://github.com/mde/ejs/releases)
- [Changelog](https://github.com/mde/ejs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mde/ejs/compare/v3.1.3...v3.1.8)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-26 07:05:21 +00:00
Hunlongyu
554f8d87bc Merge pull request #763 from Hunlongyu/dependabot/npm_and_yarn/postcss-7.0.39
Bump postcss from 7.0.32 to 7.0.39
2022-09-26 15:04:03 +08:00
dependabot[bot]
895619d194 Bump postcss from 7.0.32 to 7.0.39
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.32 to 7.0.39.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/7.0.39/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.32...7.0.39)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-20 09:08:10 +00:00
Hunlongyu
fd77157f72 Merge pull request #788 from Hunlongyu/dependabot/npm_and_yarn/ejs-and-vue/cli-plugin-babel-and-vue/cli-plugin-vuex-and-vue/cli-service-3.1.8
Bump ejs, @vue/cli-plugin-babel, @vue/cli-plugin-vuex and @vue/cli-service
2022-09-20 17:06:41 +08:00
dependabot[bot]
0d8786db21 Bump ejs, @vue/cli-plugin-babel, @vue/cli-plugin-vuex and @vue/cli-service
Bumps [ejs](https://github.com/mde/ejs), [@vue/cli-plugin-babel](https://github.com/vuejs/vue-cli/tree/HEAD/packages/@vue/cli-plugin-babel), [@vue/cli-plugin-vuex](https://github.com/vuejs/vue-cli/tree/HEAD/packages/@vue/cli-plugin-vuex) and [@vue/cli-service](https://github.com/vuejs/vue-cli/tree/HEAD/packages/@vue/cli-service). These dependencies needed to be updated together.

Updates `ejs` from 3.1.3 to 3.1.8
- [Release notes](https://github.com/mde/ejs/releases)
- [Changelog](https://github.com/mde/ejs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mde/ejs/compare/v3.1.3...v3.1.8)

Updates `@vue/cli-plugin-babel` from 4.5.11 to 5.0.8
- [Release notes](https://github.com/vuejs/vue-cli/releases)
- [Changelog](https://github.com/vuejs/vue-cli/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-cli/commits/v5.0.8/packages/@vue/cli-plugin-babel)

Updates `@vue/cli-plugin-vuex` from 4.5.11 to 5.0.8
- [Release notes](https://github.com/vuejs/vue-cli/releases)
- [Changelog](https://github.com/vuejs/vue-cli/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-cli/commits/v5.0.8/packages/@vue/cli-plugin-vuex)

Updates `@vue/cli-service` from 4.5.11 to 5.0.8
- [Release notes](https://github.com/vuejs/vue-cli/releases)
- [Changelog](https://github.com/vuejs/vue-cli/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-cli/commits/v5.0.8/packages/@vue/cli-service)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
- dependency-name: "@vue/cli-plugin-babel"
  dependency-type: direct:development
- dependency-name: "@vue/cli-plugin-vuex"
  dependency-type: direct:development
- dependency-name: "@vue/cli-service"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-19 03:29:18 +00:00
Hunlongyu
e9e86c12bd Merge pull request #787 from Hunlongyu/dependabot/npm_and_yarn/jszip-3.10.1
Bump jszip from 3.5.0 to 3.10.1
2022-09-19 11:26:10 +08:00
hunlongyu
c61a3e2f1d fix: 蓝奏云外链被劫持跳转黄色网站 2022-09-13 08:51:58 +08:00
dependabot[bot]
9f36969e81 Bump jszip from 3.5.0 to 3.10.1
Bumps [jszip](https://github.com/Stuk/jszip) from 3.5.0 to 3.10.1.
- [Release notes](https://github.com/Stuk/jszip/releases)
- [Changelog](https://github.com/Stuk/jszip/blob/main/CHANGES.md)
- [Commits](https://github.com/Stuk/jszip/compare/v3.5.0...v3.10.1)

---
updated-dependencies:
- dependency-name: jszip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-08 15:03:20 +00:00
Hunlongyu
b8c970cefe Merge pull request #762 from Hunlongyu/dependabot/npm_and_yarn/node-fetch-2.6.7
Bump node-fetch from 2.6.1 to 2.6.7
2022-08-30 15:04:39 +08:00
Hunlongyu
da1ee461db Merge pull request #761 from Hunlongyu/dependabot/npm_and_yarn/lodash-4.17.21
Bump lodash from 4.17.20 to 4.17.21
2022-08-27 13:04:28 +08:00
Hunlongyu
c691a96d26 Merge pull request #774 from Hunlongyu/dependabot/npm_and_yarn/shell-quote-1.7.3
Bump shell-quote from 1.7.2 to 1.7.3
2022-08-25 16:22:54 +08:00
dependabot[bot]
90d2bb3e47 Bump lodash from 4.17.20 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

---
updated-dependencies:
- dependency-name: lodash
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-17 09:02:18 +00:00
dependabot[bot]
2bfaad5500 Bump node-fetch from 2.6.1 to 2.6.7
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-17 09:02:16 +00:00
dependabot[bot]
c186ba5e4e Bump shell-quote from 1.7.2 to 1.7.3
Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/substack/node-shell-quote/releases)
- [Changelog](https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md)
- [Commits](https://github.com/substack/node-shell-quote/compare/v1.7.2...1.7.3)

---
updated-dependencies:
- dependency-name: shell-quote
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-17 09:02:12 +00:00
Hunlongyu
38378794ea Merge pull request #784 from Hunlongyu/dependabot/npm_and_yarn/terser-4.8.1
Bump terser from 4.8.0 to 4.8.1
2022-08-17 17:00:40 +08:00
dependabot[bot]
841f3424f9 Bump terser from 4.8.0 to 4.8.1
Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-21 04:22:32 +00:00
hunlongyu
81b34ff54a release: v2.2.8 2022-07-13 18:34:33 +08:00
hunlongyu
9b9db55f49 feat: 移除推荐,修改默认远程视频源 2022-07-13 18:33:50 +08:00
hunlongyu
e7c7367ea8 release: v2.8.7 2022-07-13 16:44:48 +08:00
14 changed files with 18171 additions and 19183 deletions

View File

@@ -70,7 +70,7 @@
<h1>ZY Player 资源播放器</h1> <h1>ZY Player 资源播放器</h1>
<h2>跨平台视频资源播放器, 简洁免费无广告.</h2> <h2>跨平台视频资源播放器, 简洁免费无广告.</h2>
<a href="https://github.com/Hunlongyu/ZY-Player/releases" target="_blank" class="download-btn"><i class="icofont-home"></i></i> Github 下载</a> <a href="https://github.com/Hunlongyu/ZY-Player/releases" target="_blank" class="download-btn"><i class="icofont-home"></i></i> Github 下载</a>
<a href="https://www.lanzous.com/b04s6a3re" target="_blank" class="download-btn"><i class="icofont-cloud"></i> 蓝奏下载 (密码:95px)</a> <a href="https://hly.lanzoul.com/b04s6a3re" target="_blank" class="download-btn"><i class="icofont-cloud"></i> 蓝奏下载 (密码:95px)</a>
</div> </div>
</div> </div>
<div class="col-lg-6 d-lg-flex flex-lg-column align-items-stretch order-1 order-lg-2 hero-img" data-aos="fade-up"> <div class="col-lg-6 d-lg-flex flex-lg-column align-items-stretch order-1 order-lg-2 hero-img" data-aos="fade-up">

20424
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{ {
"name": "zy", "name": "zy",
"version": "2.8.6", "version": "2.8.8",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
@@ -19,7 +19,7 @@
"dependencies": { "dependencies": {
"@electron/remote": "^2.0.8", "@electron/remote": "^2.0.8",
"axios": "^0.21.2", "axios": "^0.21.2",
"bootstrap-vue": "^2.21.2", "bootstrap-vue": "^2.22.0",
"cheerio": "1.0.0-rc.6", "cheerio": "1.0.0-rc.6",
"core-js": "^3.10.2", "core-js": "^3.10.2",
"dexie": "^3.2.2", "dexie": "^3.2.2",
@@ -52,11 +52,11 @@
"xgplayer-mp4": "^1.2.2" "xgplayer-mp4": "^1.2.2"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "~4.5.11", "@vue/cli-plugin-babel": "~5.0.8",
"@vue/cli-plugin-vuex": "~4.5.11", "@vue/cli-plugin-vuex": "~5.0.8",
"@vue/cli-service": "~4.5.11", "@vue/cli-service": "~5.0.8",
"babel-plugin-component": "^1.1.1", "babel-plugin-component": "^1.1.1",
"electron": "^16.0.0", "electron": "^13.0.0",
"electron-devtools-installer": "^3.1.1", "electron-devtools-installer": "^3.1.1",
"sass": "^1.30.0", "sass": "^1.30.0",
"sass-loader": "^10.1.0", "sass-loader": "^10.1.0",

View File

@@ -10,7 +10,6 @@
<Setting v-show="view === 'Setting'" /> <Setting v-show="view === 'Setting'" />
<IPTV v-show="view === 'IPTV'" /> <IPTV v-show="view === 'IPTV'" />
<EditSites v-if="view === 'EditSites'"/> <EditSites v-if="view === 'EditSites'"/>
<Recommendation v-show="view === 'Recommendation'" />
</div> </div>
<transition name="slide"> <transition name="slide">
<Detail v-if="detail.show"/> <Detail v-if="detail.show"/>

View File

@@ -25,6 +25,7 @@ function createWindow () {
resizable: true, resizable: true,
webPreferences: { webPreferences: {
webSecurity: false, webSecurity: false,
enableRemoteModule: true,
nodeIntegration: true, nodeIntegration: true,
contextIsolation: false, contextIsolation: false,
allowRunningInsecureContent: false allowRunningInsecureContent: false
@@ -67,7 +68,7 @@ function createWindow () {
if (process.platform === 'darwin') { if (process.platform === 'darwin') {
app.dock.show() app.dock.show()
} }
if (process.platform === 'Linux') { if (process.platform === 'linux') {
app.disableHardwareAcceleration() app.disableHardwareAcceleration()
app.commandLine.appendSwitch('--no-sandbox') // linux 关闭沙盒模式 app.commandLine.appendSwitch('--no-sandbox') // linux 关闭沙盒模式
} }

View File

@@ -14,13 +14,13 @@
</g> </g>
</svg> </svg>
</span> </span>
<span :class="[view === 'Recommendation' ? 'active ': ''] + 'zy-svg'" @click="changeView('Recommendation')"> <!-- <span :class="[view === 'Recommendation' ? 'active ': ''] + 'zy-svg'" @click="changeView('Recommendation')">
<svg role="img" xmlns="http://www.w3.org/2000/svg" width="48px" height="48px" viewBox="0 0 24 24" aria-labelledby="thumbUpIconTitle" stroke="#2329D6" stroke-width="1" stroke-linecap="square" stroke-linejoin="miter" fill="none" color="#2329D6"> <svg role="img" xmlns="http://www.w3.org/2000/svg" width="48px" height="48px" viewBox="0 0 24 24" aria-labelledby="thumbUpIconTitle" stroke="#2329D6" stroke-width="1" stroke-linecap="square" stroke-linejoin="miter" fill="none" color="#2329D6">
<title id="thumbUpIconTitle">影视推荐</title> <title id="thumbUpIconTitle">影视推荐</title>
<path d="M8,8.73984815 C8,8.26242561 8.17078432,7.80075162 8.4814868,7.43826541 L13.2723931,1.84887469 C13.7000127,1.34998522 14.4122932,1.20614658 15,1.5 C15.5737957,1.78689785 15.849314,2.45205792 15.6464466,3.06066017 L14,8 L18.6035746,8 C18.7235578,8 18.8432976,8.01079693 18.9613454,8.03226018 C20.0480981,8.22985158 20.7689058,9.27101818 20.5713144,10.3577709 L19.2985871,17.3577709 C19.1256814,18.3087523 18.2974196,19 17.3308473,19 L10,19 C8.8954305,19 8,18.1045695 8,17 L8,8.73984815 Z"/> <path d="M8,8.73984815 C8,8.26242561 8.17078432,7.80075162 8.4814868,7.43826541 L13.2723931,1.84887469 C13.7000127,1.34998522 14.4122932,1.20614658 15,1.5 C15.5737957,1.78689785 15.849314,2.45205792 15.6464466,3.06066017 L14,8 L18.6035746,8 C18.7235578,8 18.8432976,8.01079693 18.9613454,8.03226018 C20.0480981,8.22985158 20.7689058,9.27101818 20.5713144,10.3577709 L19.2985871,17.3577709 C19.1256814,18.3087523 18.2974196,19 17.3308473,19 L10,19 C8.8954305,19 8,18.1045695 8,17 L8,8.73984815 Z"/>
<path d="M4,18 L4,9"/> <path d="M4,18 L4,9"/>
</svg> </svg>
</span> </span> -->
<span :class="[view === 'Play' ? 'active ': ''] + 'zy-svg'" @click="changeView('Play')"> <span :class="[view === 'Play' ? 'active ': ''] + 'zy-svg'" @click="changeView('Play')">
<svg role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" aria-labelledby="playIconTitle"> <svg role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" aria-labelledby="playIconTitle">
<title id="playIconTitle">播放</title> <title id="playIconTitle">播放</title>

View File

@@ -497,8 +497,7 @@ export default {
resetSitesEvent () { resetSitesEvent () {
let url = this.setting.sitesDataURL let url = this.setting.sitesDataURL
if (!url) { if (!url) {
// 如果没有设置源站文件链接,使用默认的gitee源 url = 'https://raw.iqiq.io/Hunlongyu/ZY-Player-Resources/main/Sites/20220713.json'
url = 'https://gitee.com/cuiocean/ZY-Player-Resources/raw/main/Sites/Sites.json'
} }
zy.getDefaultSites(url).then(res => { zy.getDefaultSites(url).then(res => {
if (res.length > 0) { if (res.length > 0) {

View File

@@ -872,12 +872,34 @@ export default {
this.showFind = false this.showFind = false
} }
}, },
async getDefaultSites () {
const s = await setting.find()
zy.getDefaultSites(s.sitesDataURL).then(res => {
if (res && typeof res === 'string') {
const json = JSON.parse(res)
sites.clear().then(sites.bulkAdd(json))
}
if (res && typeof res === 'object') {
sites.clear().then(sites.bulkAdd(res))
}
sites.all().then(res => {
if (res) {
this.sites = res.filter(item => item.isActive)
if (this.site === undefined || !this.sites.some(x => x.key === this.site.key)) {
this.site = this.sites[0]
this.selectedSiteName = this.sites[0].name
}
}
})
}).catch(error => {
this.$message.error('获取云端源站失败. ' + error)
})
},
getAllSites () { getAllSites () {
sites.all().then(res => { sites.all().then(res => {
if (res.length <= 0) { if (res.length <= 0) {
this.site = {} this.$message.warning('检测到视频源未能正常加载, 即将重置源.')
this.type = {} this.getDefaultSites()
this.list = []
} else { } else {
this.sites = res.filter(item => item.isActive) this.sites = res.filter(item => item.isActive)
if (this.site === undefined || !this.sites.some(x => x.key === this.site.key)) { if (this.site === undefined || !this.sites.some(x => x.key === this.site.key)) {

View File

@@ -329,9 +329,14 @@ export default {
if (!this.setting.sitesDataURL) this.resetDefaultSitesDataURL() if (!this.setting.sitesDataURL) this.resetDefaultSitesDataURL()
}) })
}, },
getDefaultSites () { async getDefaultSites () {
zy.getDefaultSites(this.setting.sitesDataURL).then(res => { const s = await setting.find()
if (res.length > 0) { zy.getDefaultSites(s.sitesDataURL).then(res => {
if (res && typeof res === 'string') {
const json = JSON.parse(res)
sites.clear().then(sites.bulkAdd(json))
}
if (res && typeof res === 'object') {
sites.clear().then(sites.bulkAdd(res)) sites.clear().then(sites.bulkAdd(res))
} }
}).catch(error => { }).catch(error => {
@@ -590,7 +595,7 @@ export default {
} }
}, },
created () { created () {
this.getSites() // this.getSites()
this.getSetting() this.getSetting()
this.getShortcut() this.getShortcut()
this.checkUpdate() this.checkUpdate()

View File

@@ -10,7 +10,7 @@ import Share from './Share'
import History from './History' import History from './History'
import EditSites from './EditSites' import EditSites from './EditSites'
import IPTV from './IPTV' import IPTV from './IPTV'
import Recommendation from './Recommendation' // import Recommendation from './Recommendation'
export default { export default {
registerComponents () { registerComponents () {
Vue.component('Aside', Aside) Vue.component('Aside', Aside)
@@ -24,6 +24,6 @@ export default {
Vue.component('History', History) Vue.component('History', History)
Vue.component('EditSites', EditSites) Vue.component('EditSites', EditSites)
Vue.component('IPTV', IPTV) Vue.component('IPTV', IPTV)
Vue.component('Recommendation', Recommendation) // Vue.component('Recommendation', Recommendation)
} }
} }

View File

@@ -96,7 +96,7 @@ db.version(11).stores({
'windowPositionAndSize, pauseWhenMinimize, sitesDataURL, defaultParseURL' 'windowPositionAndSize, pauseWhenMinimize, sitesDataURL, defaultParseURL'
}).upgrade(trans => { }).upgrade(trans => {
trans.setting.toCollection().modify(setting => { trans.setting.toCollection().modify(setting => {
setting.sitesDataURL = 'https://gitee.com/cuiocean/ZY-Player-Resources/raw/main/Sites/Sites.json' setting.sitesDataURL = 'https://raw.iqiq.io/Hunlongyu/ZY-Player-Resources/main/Sites/20220713.json'
setting.defaultParseURL = 'https://jx.bpba.cc/?v=' setting.defaultParseURL = 'https://jx.bpba.cc/?v='
}) })
}) })

View File

@@ -24,7 +24,7 @@
"autocleanWhenIptvCheck": false, "autocleanWhenIptvCheck": false,
"autoChangeSourceWhenIptvStalling": true, "autoChangeSourceWhenIptvStalling": true,
"shortcutModified": false, "shortcutModified": false,
"sitesDataURL": "https://gitee.com/cuiocean/ZY-Player-Resources/raw/main/Sites/Sites.json", "sitesDataURL": "https://raw.iqiq.io/Hunlongyu/ZY-Player-Resources/main/Sites/20220713.json",
"rootClassFilter": [ "rootClassFilter": [
"电影", "电影",
"电影片", "电影片",

View File

@@ -563,8 +563,7 @@ const zy = {
}) })
}) })
}, },
getDefaultSites () { getDefaultSites (url) {
const url = 'https://gitee.com/cuiocean/ZY-Player-Resources/raw/main/Sites/Sites.json'
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
axios.get(url).then(res => { axios.get(url).then(res => {
resolve(res.data) resolve(res.data)

16853
yarn.lock

File diff suppressed because it is too large Load Diff