Compare commits

...

37 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
hunlongyu
5e37ef32fd release: v2.8.6 2022-07-13 10:58:16 +08:00
hunlongyu
85525745a1 feat: remove qrcode and modify sites url 2022-07-13 10:56:50 +08:00
hunlongyu
c7f581a088 fix: 让项目能正常跑起来 2022-07-13 09:49:12 +08:00
Hunlongyu
a88dfb1bc3 Merge pull request #769 from Hunlongyu/dependabot/npm_and_yarn/eventsource-1.1.1
Bump eventsource from 1.0.7 to 1.1.1
2022-07-03 21:29:37 +08:00
Hunlongyu
410cd8fc1a Merge pull request #767 from cuiocean/dependabot/npm_and_yarn/dexie-3.2.2
Bump dexie from 3.0.3 to 3.2.2
2022-06-16 09:43:55 +08:00
dependabot[bot]
bb30be3c4d Bump eventsource from 1.0.7 to 1.1.1
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](https://github.com/EventSource/eventsource/compare/v1.0.7...v1.1.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-01 18:54:40 +00:00
dependabot[bot]
6230c9e87a Bump dexie from 3.0.3 to 3.2.2
Bumps [dexie](https://github.com/dfahlander/Dexie.js) from 3.0.3 to 3.2.2.
- [Release notes](https://github.com/dfahlander/Dexie.js/releases)
- [Commits](https://github.com/dfahlander/Dexie.js/compare/v3.0.3...v3.2.2)

---
updated-dependencies:
- dependency-name: dexie
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 20:15:41 +00:00
Hunlongyu
93efb64211 Merge pull request #759 from cuiocean/dependabot/npm_and_yarn/electron-13.6.6
Bump electron from 11.5.0 to 13.6.6
2022-03-27 17:21:26 +08:00
dependabot[bot]
3c4dd91d36 Bump electron from 11.5.0 to 13.6.6
Bumps [electron](https://github.com/electron/electron) from 11.5.0 to 13.6.6.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v11.5.0...v13.6.6)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-25 19:09:35 +00:00
Hunlongyu
45041fdab1 Merge pull request #746 from cuiocean/dependabot/npm_and_yarn/axios-0.21.2
Bump axios from 0.21.1 to 0.21.2
2021-10-13 08:57:18 +08:00
dependabot[bot]
bcf0613ff0 Bump axios from 0.21.1 to 0.21.2
Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.1...v0.21.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-13 00:56:23 +00:00
Hunlongyu
3107b851c5 Merge pull request #745 from cuiocean/dependabot/npm_and_yarn/electron-11.5.0
Bump electron from 11.3.0 to 11.5.0
2021-10-13 08:55:37 +08:00
dependabot[bot]
b27883ad0f Bump electron from 11.3.0 to 11.5.0
Bumps [electron](https://github.com/electron/electron) from 11.3.0 to 11.5.0.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v11.3.0...v11.5.0)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-12 22:51:49 +00:00
haiyangcui
e0c3502c3f Update x86.yml 2021-08-10 16:10:30 +02:00
haiyangcui
4c2db002eb 推荐页面添加"豆瓣华语电影" 2021-08-10 15:56:16 +02:00
haiyangcui
898f769d24 电影页面删除重复的数据 2021-08-10 15:24:02 +02:00
cuiocean
d6549c6a6b Update x86.yml 2021-08-10 15:23:13 +02:00
21 changed files with 19087 additions and 22888 deletions

View File

@@ -1,4 +1,4 @@
name: release-build name: x86-release-build
on: on:
push: push:
@@ -25,11 +25,3 @@ jobs:
shell: pwsh shell: pwsh
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: dist_electron
path: dist_electron/*.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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">

24184
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.5", "version": "2.8.8",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
@@ -17,15 +17,16 @@
}, },
"main": "background.js", "main": "background.js",
"dependencies": { "dependencies": {
"axios": "^0.21.1", "@electron/remote": "^2.0.8",
"bootstrap-vue": "^2.21.2", "axios": "^0.21.2",
"cheerio": "^1.0.0-rc.6", "bootstrap-vue": "^2.22.0",
"cheerio": "1.0.0-rc.6",
"core-js": "^3.10.2", "core-js": "^3.10.2",
"dexie": "^3.0.3", "dexie": "^3.2.2",
"electron-localshortcut": "^3.2.1", "electron-localshortcut": "^3.2.1",
"electron-proxy-agent": "^1.2.0", "electron-proxy-agent": "^1.2.0",
"electron-updater": "^4.3.8", "electron-updater": "^4.3.8",
"element-ui": "^2.15.1", "element-ui": "^2.15.9",
"fast-xml-parser": "^3.19.0", "fast-xml-parser": "^3.19.0",
"html2canvas": "^1.0.0-rc.7", "html2canvas": "^1.0.0-rc.7",
"iptv-playlist-parser": "^0.6.0", "iptv-playlist-parser": "^0.6.0",
@@ -40,7 +41,7 @@
"session": "^0.1.0", "session": "^0.1.0",
"sortablejs": "^1.13.0", "sortablejs": "^1.13.0",
"v-fit-columns": "^0.2.0", "v-fit-columns": "^0.2.0",
"vue": "^2.6.12", "vue": "^2.6.14",
"vue-infinite-loading": "^2.4.5", "vue-infinite-loading": "^2.4.5",
"vue-waterfall-plugin": "^1.1.0", "vue-waterfall-plugin": "^1.1.0",
"vuedraggable": "^2.24.3", "vuedraggable": "^2.24.3",
@@ -51,24 +52,15 @@
"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-eslint": "~4.5.11", "@vue/cli-plugin-vuex": "~5.0.8",
"@vue/cli-plugin-vuex": "~4.5.11", "@vue/cli-service": "~5.0.8",
"@vue/cli-service": "~4.5.11",
"@vue/eslint-config-standard": "^6.0.0",
"babel-eslint": "^10.1.0",
"babel-plugin-component": "^1.1.1", "babel-plugin-component": "^1.1.1",
"electron": "^11.3.0", "electron": "^13.0.0",
"electron-devtools-installer": "^3.1.1", "electron-devtools-installer": "^3.1.1",
"eslint": "^7.20.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-standard": "^4.1.0",
"eslint-plugin-vue": "^7.6.0",
"sass": "^1.30.0", "sass": "^1.30.0",
"sass-loader": "^10.1.0", "sass-loader": "^10.1.0",
"vue-cli-plugin-electron-builder": "2.0.0-rc.6", "vue-cli-plugin-electron-builder": "2.0.0-rc.6",
"vue-template-compiler": "^2.6.12" "vue-template-compiler": "^2.6.14"
} }
} }

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"/>
@@ -23,7 +22,7 @@
<script> <script>
import { setting } from './lib/dexie' import { setting } from './lib/dexie'
const { remote } = require('electron') const remote = require('@electron/remote')
export default { export default {
name: 'App', name: 'App',
data () { data () {

View File

@@ -4,7 +4,10 @@ import { app, protocol, BrowserWindow, globalShortcut } from 'electron'
import { createProtocol } from 'vue-cli-plugin-electron-builder/lib' import { createProtocol } from 'vue-cli-plugin-electron-builder/lib'
import installExtension, { VUEJS_DEVTOOLS } from 'electron-devtools-installer' import installExtension, { VUEJS_DEVTOOLS } from 'electron-devtools-installer'
import { initUpdater } from './lib/update/update' import { initUpdater } from './lib/update/update'
require('@electron/remote/main').initialize()
const isDevelopment = process.env.NODE_ENV !== 'production' const isDevelopment = process.env.NODE_ENV !== 'production'
// const log = require('electron-log') // 用于调试主程序 // const log = require('electron-log') // 用于调试主程序
app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors') // 允许跨域 app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors') // 允许跨域
@@ -23,7 +26,8 @@ function createWindow () {
webPreferences: { webPreferences: {
webSecurity: false, webSecurity: false,
enableRemoteModule: true, enableRemoteModule: true,
nodeIntegration: process.env.ELECTRON_NODE_INTEGRATION, nodeIntegration: true,
contextIsolation: false,
allowRunningInsecureContent: false allowRunningInsecureContent: false
} }
}) })
@@ -35,12 +39,13 @@ function createWindow () {
createProtocol('app') createProtocol('app')
win.loadURL('app://./index.html') win.loadURL('app://./index.html')
} }
// 修改request headers // 修改request headers
// Sec-Fetch下禁止修改浏览器自动加上请求头 https://www.cnblogs.com/fulu/p/13879080.html 暂时先用index.html的meta referer policy替代 // Sec-Fetch下禁止修改浏览器自动加上请求头 https://www.cnblogs.com/fulu/p/13879080.html 暂时先用index.html的meta referer policy替代
const filter = { const filter = {
urls: ['http://*/*', 'http://*/*'] urls: ['http://*/*', 'http://*/*']
} }
require("@electron/remote/main").enable(win.webContents)
win.webContents.session.webRequest.onBeforeSendHeaders(filter, (details, callback) => { win.webContents.session.webRequest.onBeforeSendHeaders(filter, (details, callback) => {
const url = new URL(details.url) const url = new URL(details.url)
details.requestHeaders.Origin = url.origin details.requestHeaders.Origin = url.origin
@@ -63,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

@@ -150,9 +150,9 @@
import { mapMutations } from 'vuex' import { mapMutations } from 'vuex'
import { sites, setting } from '../lib/dexie' import { sites, setting } from '../lib/dexie'
import zy from '../lib/site/tools' import zy from '../lib/site/tools'
import { remote } from 'electron'
import fs from 'fs' import fs from 'fs'
import Sortable from 'sortablejs' import Sortable from 'sortablejs'
const remote = require('@electron/remote')
export default { export default {
name: 'editSites', name: 'editSites',
@@ -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

@@ -529,6 +529,9 @@ export default {
}) })
break break
} }
// Get unique film data
filteredData = Array.from(new Set(filteredData))
if (this.showFind) { if (this.showFind) {
this.filteredSearchContents = filteredData this.filteredSearchContents = filteredData
} else { } else {
@@ -869,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

@@ -15,7 +15,7 @@
</div> </div>
</template> </template>
<script> <script>
const { remote } = require('electron') const remote = require('@electron/remote')
export default { export default {
name: 'frame', name: 'frame',
computed: { computed: {

View File

@@ -154,9 +154,9 @@
import { mapMutations } from 'vuex' import { mapMutations } from 'vuex'
import { history, sites, setting } from '../lib/dexie' import { history, sites, setting } from '../lib/dexie'
import zy from '../lib/site/tools' import zy from '../lib/site/tools'
import { remote } from 'electron'
import fs from 'fs' import fs from 'fs'
import Waterfall from 'vue-waterfall-plugin' import Waterfall from 'vue-waterfall-plugin'
const remote = require('@electron/remote')
const { clipboard } = require('electron') const { clipboard } = require('electron')
export default { export default {

View File

@@ -110,10 +110,10 @@ import { mapMutations } from 'vuex'
import { iptv, channelList, setting } from '../lib/dexie' import { iptv, channelList, setting } from '../lib/dexie'
import { iptv as defaultChannels } from '../lib/dexie/initData' import { iptv as defaultChannels } from '../lib/dexie/initData'
import zy from '../lib/site/tools' import zy from '../lib/site/tools'
import { remote } from 'electron'
import fs from 'fs' import fs from 'fs'
import Sortable from 'sortablejs' import Sortable from 'sortablejs'
import axios from 'axios' import axios from 'axios'
const remote = require('@electron/remote')
export default { export default {
name: 'iptv', name: 'iptv',
data () { data () {

View File

@@ -260,7 +260,8 @@ import Clickoutside from 'element-ui/src/utils/clickoutside'
import { exec, execFile } from 'child_process' import { exec, execFile } from 'child_process'
import PinyinMatch from 'pinyin-match' import PinyinMatch from 'pinyin-match'
const { remote, clipboard } = require('electron') const { clipboard } = require('electron')
const remote = require('@electron/remote')
const win = remote.getCurrentWindow() const win = remote.getCurrentWindow()
const URL = require('url') const URL = require('url')
const VIDEO_DETAIL_CACHE = {} const VIDEO_DETAIL_CACHE = {}

View File

@@ -166,7 +166,7 @@ export default {
filteredList: [], filteredList: [],
// 不同推荐 // 不同推荐
recommendationsDefault: [], recommendationsDefault: [],
recommendationTypes: ['豆瓣热门电影', '豆瓣高分电影', '豆瓣冷门佳片', '豆瓣热门剧集', '豆瓣热门美剧', '豆瓣热门英剧', '豆瓣热门国产剧', '豆瓣热门综艺', '豆瓣热门动漫', '豆瓣热门纪录片', '豆瓣热门动画电影'], recommendationTypes: ['豆瓣热门电影', '豆瓣高分电影', '豆瓣华语电影', '豆瓣冷门佳片', '豆瓣热门剧集', '豆瓣热门美剧', '豆瓣热门英剧', '豆瓣热门国产剧', '豆瓣热门综艺', '豆瓣热门动漫', '豆瓣热门纪录片', '豆瓣热门动画电影'],
selectedRecommendationType: '豆瓣热门电影', selectedRecommendationType: '豆瓣热门电影',
// Toolbar // Toolbar
showToolbar: false, showToolbar: false,
@@ -201,7 +201,9 @@ export default {
hotChineseTVSeriesPageStart: 0, hotChineseTVSeriesPageStart: 0,
hotChineseTVSeries: [], hotChineseTVSeries: [],
goodButNotHotMoviesPageStart: 0, goodButNotHotMoviesPageStart: 0,
goodButNotHotMovies: [] goodButNotHotMovies: [],
chineseMoviesPageStart: 0,
chineseMovies: []
} }
} }
}, },
@@ -304,6 +306,9 @@ export default {
if (this.selectedRecommendationType === '豆瓣冷门佳片') { if (this.selectedRecommendationType === '豆瓣冷门佳片') {
this.recommendations = [...this.douban.goodButNotHotMovies] this.recommendations = [...this.douban.goodButNotHotMovies]
} }
if (this.selectedRecommendationType === '豆瓣华语电影') {
this.recommendations = [...this.douban.chineseMovies]
}
if (this.recommendations.length === 0) { if (this.recommendations.length === 0) {
this.updateDoubanRecommendationsEvent() this.updateDoubanRecommendationsEvent()
} }
@@ -358,6 +363,9 @@ export default {
if (this.selectedRecommendationType === '豆瓣冷门佳片') { if (this.selectedRecommendationType === '豆瓣冷门佳片') {
this.douban.goodButNotHotMovies.push(movie) this.douban.goodButNotHotMovies.push(movie)
} }
if (this.selectedRecommendationType === '豆瓣华语电影') {
this.douban.chineseMovies.push(movie)
}
}, },
searchAndCacheMovie (element) { searchAndCacheMovie (element) {
zy.searchFirstDetail(this.sites[0].key, element.title).then(detailRes => { zy.searchFirstDetail(this.sites[0].key, element.title).then(detailRes => {
@@ -448,6 +456,10 @@ export default {
doubanUrl = `https://movie.douban.com/j/search_subjects?type=movie&tag=冷门佳片&sort=recommend&page_limit=${this.douban.page_limit}&page_start=${this.douban.goodButNotHotMoviesPageStart}` doubanUrl = `https://movie.douban.com/j/search_subjects?type=movie&tag=冷门佳片&sort=recommend&page_limit=${this.douban.page_limit}&page_start=${this.douban.goodButNotHotMoviesPageStart}`
this.douban.goodButNotHotMoviesPageStart = this.douban.goodButNotHotMoviesPageStart + this.douban.page_limit this.douban.goodButNotHotMoviesPageStart = this.douban.goodButNotHotMoviesPageStart + this.douban.page_limit
} }
if (this.selectedRecommendationType === '豆瓣华语电影') {
doubanUrl = `https://movie.douban.com/j/search_subjects?type=movie&tag=华语&sort=recommend&page_limit=${this.douban.page_limit}&page_start=${this.douban.chineseMoviesPageStart}`
this.douban.chineseMoviesPageStart = this.douban.chineseMoviesPageStart + this.douban.page_limit
}
this.getRecommendationsDoubanMovieOrTV(doubanUrl) this.getRecommendationsDoubanMovieOrTV(doubanUrl)
}, },
toggleViewMode () { toggleViewMode () {

View File

@@ -5,9 +5,7 @@
<div class="info"> <div class="info">
<a @click="linkOpen('http://zyplayer.fun/')">官网</a> <a @click="linkOpen('http://zyplayer.fun/')">官网</a>
<a @click="linkOpen('https://github.com/Hunlongyu/ZY-Player')">Github</a> <a @click="linkOpen('https://github.com/Hunlongyu/ZY-Player')">Github</a>
<a @click="linkOpen('https://github.com/Hunlongyu/ZY-Player/releases/tag/v' + pkg.version)">v{{pkg.version}}更新日志</a> <a @click="linkOpen('https://github.com/Hunlongyu/ZY-Player/discussions/776')">软件完全免费如遇收费请立即给差评并退费</a>
<a @click="linkOpen('https://github.com/Hunlongyu/ZY-Player/issues/80')">常见问题</a>
<a @click="linkOpen('https://github.com/Hunlongyu/ZY-Player/issues')">反馈建议</a>
<a style="color:#38dd77" @click="openUpdate()" v-show="update.find" >最新版本v{{update.version}}</a> <a style="color:#38dd77" @click="openUpdate()" v-show="update.find" >最新版本v{{update.version}}</a>
</div> </div>
<div class="shortcut"> <div class="shortcut">
@@ -148,13 +146,6 @@
</div> </div>
</div> </div>
</div> </div>
<div class="qrcode">
<div class="title">请作者吃辣条</div>
<div class="qrcode-box">
<img class="qrcode-item" src="../assets/image/wepay-hunlongyu.png">
<img class="qrcode-item" src="../assets/image/wepay_cuiocean.jpg">
</div>
</div>
<div class="clearDB"> <div class="clearDB">
<span @click="clearDBEvent" class="clearBtn">软件重置</span> <span @click="clearDBEvent" class="clearBtn">软件重置</span>
<span @click="changePasswordEvent" class="clearBtn">设置密码</span> <span @click="changePasswordEvent" class="clearBtn">设置密码</span>
@@ -265,7 +256,8 @@ import { mapMutations } from 'vuex'
import pkg from '../../package.json' import pkg from '../../package.json'
import { setting, sites, shortcut } from '../lib/dexie' import { setting, sites, shortcut } from '../lib/dexie'
import { localKey as defaultShortcuts } from '../lib/dexie/initData' import { localKey as defaultShortcuts } from '../lib/dexie/initData'
import { shell, clipboard, remote, ipcRenderer } from 'electron' import { shell, clipboard, ipcRenderer } from 'electron'
const remote = require('@electron/remote')
import db from '../lib/dexie/dexie' import db from '../lib/dexie/dexie'
import zy from '../lib/site/tools' import zy from '../lib/site/tools'
export default { export default {
@@ -337,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 => {
@@ -390,7 +387,7 @@ export default {
this.updateSettingEvent() this.updateSettingEvent()
}, },
resetDefaultSitesDataURL () { resetDefaultSitesDataURL () {
this.setting.sitesDataURL = 'https://gitee.com/cuiocean/ZY-Player-Resources/raw/main/Sites/Sites.json' this.setting.sitesDataURL = 'https://raw.iqiq.io/Hunlongyu/ZY-Player-Resources/main/Sites/20220713.json'
}, },
configSitesDataURL () { configSitesDataURL () {
if (!this.setting.sitesDataURL) this.resetDefaultSitesDataURL() if (!this.setting.sitesDataURL) this.resetDefaultSitesDataURL()
@@ -598,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

@@ -179,7 +179,7 @@
import { mapMutations } from 'vuex' import { mapMutations } from 'vuex'
import { history, star, sites, setting } from '../lib/dexie' import { history, star, sites, setting } from '../lib/dexie'
import zy from '../lib/site/tools' import zy from '../lib/site/tools'
import { remote } from 'electron' const remote = require('@electron/remote')
import fs from 'fs' import fs from 'fs'
import Sortable from 'sortablejs' import Sortable from 'sortablejs'
import Waterfall from 'vue-waterfall-plugin' import Waterfall from 'vue-waterfall-plugin'

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

@@ -11,7 +11,7 @@ import SocksProxyAgent from 'socks-proxy-agent'
// 要在设置中添加代理设置可参考https://stackoverflow.com/questions/37393248/how-connect-to-proxy-in-electron-webview // 要在设置中添加代理设置可参考https://stackoverflow.com/questions/37393248/how-connect-to-proxy-in-electron-webview
const http = require('http') const http = require('http')
const https = require('http') const https = require('http')
const { remote } = require('electron') const remote = require('@electron/remote')
const win = remote.getCurrentWindow() const win = remote.getCurrentWindow()
const session = win.webContents.session const session = win.webContents.session
const ElectronProxyAgent = require('electron-proxy-agent') const ElectronProxyAgent = require('electron-proxy-agent')
@@ -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)

17622
yarn.lock

File diff suppressed because it is too large Load Diff