Compare commits

...

9 Commits

Author SHA1 Message Date
hunlongyu
b89b56cce4 😱 添加自动更新代码 2020-05-07 15:12:17 +08:00
hunlongyu
3e345bf57b 🥋 修复Bug, 新增视频源 2020-04-30 16:11:48 +08:00
hunlongyu
d70da3dc3e 😂 修复浏览第一次加载时默认不显示全部视频的bug 2020-04-28 17:21:52 +08:00
hunlongyu
8f6a8fef07 🐷 修复圆角透明bug 2020-04-28 17:04:48 +08:00
hunlongyu
bda6e32b04 😂 新旧版本并不会覆盖安装 2020-04-28 16:52:35 +08:00
hunlongyu
51fd2c47da ✈ 修复一些问题 2020-04-28 16:38:55 +08:00
hunlongyu
5b3a2efc42 🥠 新增一些花里胡哨的徽章 2020-04-28 16:06:43 +08:00
hunlongyu
791febea06 🚍 Readme 修改截图 2020-04-28 14:08:37 +08:00
hunlongyu
402aa62589 🎭 修改主题里显示的图片 2020-04-28 13:59:08 +08:00
13 changed files with 205 additions and 46 deletions

View File

@@ -21,7 +21,7 @@ jobs:
- run: |
yarn
yarn electron:build
yarn release
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -30,8 +30,6 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
dist_electron/*.exe
dist_electron/*.dmg
dist_electron/*.snap
dist_electron/win-unpacked/*.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -3,46 +3,40 @@
</p>
<p align="center">
<img src="https://forthebadge.com/images/badges/built-with-love.svg">
<img src="https://forthebadge.com/images/badges/made-with-vue.svg">
<p>
<p align="center">
<img alt="GitHub" src="https://img.shields.io/github/license/Hunlongyu/ZY-Player?style=for-the-badge">
<img src="https://github.com/aleen42/badges/raw/master/src/visual_studio_code_flat_square.svg?sanitize=true">
<img src="https://github.com/aleen42/badges/raw/master/src/vue_flat_square.svg?sanitize=true">
<img src="https://github.com/aleen42/badges/raw/master/src/javascript_flat_square.svg?sanitize=true">
<img src="https://github.com/aleen42/badges/raw/master/src/eslint_flat_square.svg?sanitize=true">
</p>
<p align="center">
<img alt="GitHub All Releases" src="https://img.shields.io/github/downloads/Hunlongyu/ZY-Player/total?style=for-the-badge">
<img alt="GitHub release (latest by date including pre-releases)" src="https://img.shields.io/github/v/release/Hunlongyu/ZY-Player?include_prereleases&style=for-the-badge">
<img alt="GitHub" src="https://img.shields.io/github/license/Hunlongyu/ZY-Player?style=for-the-badge">
<img src="https://img.shields.io/github/workflow/status/Hunlongyu/ZY-Player/release-build?style=for-the-badge">
<p>
## ZY Player
### 新版
### 新版内测
新版本: v0.9.9 已开发完, 现进行内测. [内侧公告](https://github.com/Hunlongyu/ZY-Player/issues/24)
新版本: v0.9.x 已开发完, 现进行内测, [点击查看内测公告](https://github.com/Hunlongyu/ZY-Player/issues/24)
[点击这里可以查看开发计划](https://github.com/Hunlongyu/ZY-Player/projects/3).
大家有什么新的需求建议欢迎踊跃提出[点击这里提意见](https://github.com/Hunlongyu/ZY-Player/issues/14).
## v0.9.1 版本:
大家有什么新的需求建议欢迎踊跃提出[点击这里提意见](https://github.com/Hunlongyu/ZY-Player/issues/14)
#### 下载 (目前最新版: v0.9.1):
1. [Github -- 官方下载](https://github.com/Hunlongyu/ZY-Player/releases)
2. [蓝奏云 -- 快速下载](https://www.lanzous.com/b04s6a3re) 密码:95px
#### 截图:
主界面 ⬇
![film.png](https://i.loli.net/2020/01/19/U1EPzoJHhTDnuxA.png)
暗黑主题 ⬇
![dark.png](https://i.loli.net/2020/01/20/eU6J3EFcPTXnjlK.png)
搜索 ⬇
![search.png](https://i.loli.net/2020/01/19/BPvJKxlnNfquRI4.png)
搜索结果 ⬇
![search-keyword.png](https://i.loli.net/2020/01/19/6wfY3rPBokM15hl.png)
详情 ⬇
![detail.png](https://i.loli.net/2020/01/19/CN8E1ikyMbhzo9t.png)
播放 ⬇
![play.png](https://i.loli.net/2020/01/19/4XlJRqmx2y8zAec.png)
收藏 ⬇
![star.png](https://i.loli.net/2020/01/19/Q2fkWUvaXKZJcS4.png)
![001.png](https://i.loli.net/2020/04/28/T3YZvStwNQJ5aHy.png)
![003.png](https://i.loli.net/2020/04/28/2xYw9nIyWSZ5Rsr.png)
![002.png](https://i.loli.net/2020/04/28/sxnY28hgFcpUrb9.png)
### 重要:
所有资源来自网上, 该软件不参与任何制作, 上传, 储存, 下载等内容. 该软件仅供学习参考, 请于安装后24小时内删除.

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,minimal-ui">
<meta name="referrer" content="no-referrer">
<title>xgplayer</title>
<title>ZY Player</title>
<style type="text/css">
html, body {width:100%;height:100%;margin:0;padding:0;overflow:hidden;}
</style>
@@ -19,9 +19,7 @@
if (r!=null)return unescape(r[2]); return null;
}
let link = window.location.href
let title = get('title')
let url = get('url')
document.title = title
let player = new HlsJsPlayer({
"id": "mse",
"url": url,

View File

@@ -1,7 +1,12 @@
{
"name": "zyplayer",
"version": "0.9.11",
"name": "zy",
"version": "0.9.19",
"private": true,
"author": {
"name": "Hunlongyu",
"email": "hunlongyu@gmail.com"
},
"description": "ZY Player 资源播放器",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
@@ -9,7 +14,8 @@
"electron:build": "vue-cli-service electron:build",
"dev": "vue-cli-service electron:serve",
"postinstall": "electron-builder install-app-deps",
"postuninstall": "electron-builder install-app-deps"
"postuninstall": "electron-builder install-app-deps",
"release": "vue-cli-service electron:build -p always"
},
"main": "background.js",
"dependencies": {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 75 KiB

View File

@@ -22,7 +22,7 @@ function createWindow () {
width: 1080,
height: 720,
frame: false,
resizable: true,
resizable: false,
transparent: true,
webPreferences: {
webSecurity: false,

View File

@@ -11,7 +11,7 @@
</div>
</div>
<!-- tags -->
<div class="zy-select" @mouseleave="show.tags = false" v-if="site.tags.length > 0">
<div class="zy-select" @mouseleave="show.tags = false" v-if="site.tags.length > 0 && keywords.length <= 0">
<div class="vs-placeholder" @click="show.tags = true">{{site.tags[tag].title}}</div>
<div class="vs-options" v-show="show.tags">
<ul>
@@ -20,7 +20,7 @@
</div>
</div>
<!-- type -->
<div class="zy-select" @mouseleave="show.type = false" v-if="site.tags[tag].children.length > 0">
<div class="zy-select" @mouseleave="show.type = false" v-if="site.tags[tag].children.length > 0 && keywords.length <= 0">
<div class="vs-placeholder" @click="show.type = true">{{typeName}}</div>
<div class="vs-options" v-show="show.type">
<ul>
@@ -172,18 +172,22 @@ export default {
},
siteClick (e) {
this.site = e
this.tb.update = 0
this.tb.total = 0
this.tag = 0
this.id = e.tags[0].id
this.tb.loading = true
this.show.site = false
tools.film_get(e.key, this.id).then(res => {
this.tb.list = res.list
this.tb.total = res.total
this.tb.update = res.update
this.tb.loading = false
})
if (this.keywords.length > 0) {
this.searchEvent()
} else {
this.tb.update = 0
this.tb.total = 0
this.tb.loading = true
tools.film_get(e.key, this.id).then(res => {
this.tb.list = res.list
this.tb.total = res.total
this.tb.update = res.update
this.tb.loading = false
})
}
},
tagClick (e, n) {
this.tb.update = 0

View File

@@ -230,6 +230,7 @@ export default {
if (res.m3u8_urls.length > 1 && (res.m3u8_urls.length - 1 > this.video.index)) {
this.video.index++
}
this.xg.off('ended')
})
}).catch(err => {
this.$m.error(err)

View File

@@ -1082,6 +1082,139 @@ const sites = [
children: []
}
]
},
{
key: 'okzy',
name: 'OK资源网',
url: 'https://www.okzy.co',
new: 'https://www.okzy.co/?m=vod-index-pg-{page}.html',
view: 'https://www.okzy.co/?m=vod-type-id-{id}-page-{page}.html',
search: 'https://www.okzy.co/index.php?m=vod-search-pg-{page}-wd-{keywords}.html',
type: 0,
tags: [
{
title: '最新',
id: 0,
children: []
},
{
title: '电影',
id: 1,
children: [
{
title: '动作片',
id: 5
},
{
title: '喜剧片',
id: 6
},
{
title: '爱情片',
id: 7
},
{
title: '科幻片',
id: 8
},
{
title: '恐怖片',
id: 9
},
{
title: '剧情片',
id: 10
},
{
title: '战争片',
id: 11
},
{
title: '纪录片',
id: 19
},
{
title: '微电影',
id: 20
},
{
title: '伦理片',
id: 21
}
]
},
{
title: '连续剧',
id: 2,
children: [
{
title: '国产剧',
id: 12
},
{
title: '香港剧',
id: 13
},
{
title: '韩国剧',
id: 14
},
{
title: '欧美剧',
id: 15
},
{
title: '台湾剧',
id: 16
},
{
title: '日本剧',
id: 17
},
{
title: '海外剧',
id: 18
}
]
},
{
title: '综艺片',
id: 3,
children: [
{
title: '内地综艺',
id: 26
},
{
title: '港台综艺',
id: 27
},
{
title: '日韩综艺',
id: 28
},
{
title: '欧美综艺',
id: 29
}
]
},
{
title: '动漫片',
id: 4,
children: []
},
{
title: '福利片',
id: 22,
children: []
},
{
title: '解说',
id: 33,
children: []
}
]
}
]

View File

@@ -6,7 +6,7 @@ const zy = {
page: 1, // 第几页
keywords: '', // 搜索关键字
// 获取浏览列表
film_get (key, id = 1, page = 1) {
film_get (key, id = 0, page = 1) {
return new Promise((resolve, reject) => {
const site = getSite(key)
let url = ''

View File

@@ -5,7 +5,7 @@ Vue.use(Vuex)
export default new Vuex.Store({
state: {
view: 'Play',
view: 'Film',
theme: 'light',
site: 'zuidazy',
language: 'zhCn',

View File

@@ -11,7 +11,32 @@ module.exports = {
oneClick: false,
allowToChangeInstallationDirectory: true
},
productName: 'ZY Player'
productName: 'ZY Player 内测版',
publish: [
{
provider: 'github',
owner: 'Hunlongyu',
repo: 'ZY-Player'
}
],
mac: {
icon: 'build/icon/icon.icns',
category: 'public.app-category.developer-tools',
target: 'default',
extendInfo: {
LSUIElement: 1
}
},
win: {
icon: 'build/icons/icon.ico',
target: 'nsis'
},
linux: {
icon: 'build/icons/'
},
snap: {
publish: ['github']
}
}
}
}