Skip to content

Commit 010b488

Browse files
committed
😋 修复精简模式下切换视频无法保留历史记录的问题
1 parent 03c32d8 commit 010b488

File tree

6 files changed

+29
-17
lines changed

6 files changed

+29
-17
lines changed

README.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@
2424

2525
## ZY Player 资源播放器
2626

27-
1. 全平台支持. windows, mac, linux.
28-
2. 12个视频源. 未来更新更多的视频源.
29-
3. 新增历史播放记录, 并记录播放进度.
30-
4. 新增分享功能. 一键分享海报图片.
31-
5. 新增精简模式. 支持修改透明度.
32-
6. 全新布局配色.
33-
7. 新增多语言.
34-
8. 下载功能 (最大资源网和OK资源网支持下载.)
27+
1. 全平台支持. Windows, Mac, Linux
28+
2. 12个视频源. 未来更新更多的视频源
29+
3. 新增历史播放记录, 并记录播放进度
30+
4. 新增分享功能. 一键分享海报图片
31+
5. 新增精简模式. 支持修改透明度
32+
6. 全新布局配色
33+
7. 新增多语言
34+
8. 下载功能
3535
9. 更详细的视频分类
36-
10. 收藏夹同步更新视频追剧.(手动更新)
36+
10. 收藏夹同步更新视频追剧
3737
11. 后台自动更新
3838
12. 全局快捷键
3939
13. 支持演员名称搜索
@@ -45,13 +45,12 @@
4545

4646
| 快捷键 | 说明 | 主界面 | 小窗口 |
4747
| :----------------------: | ---------- | :----: | :----: |
48-
| `⌘ + ➡``Ctrl + ➡` | 下一集 |||
49-
| `⌘ + ⬅``Ctrl + ⬅` | 上一集 |||
50-
| `⌘ + ⬆``Ctrl + ⬆` | 减少透明度 | ||
51-
| `⌘ + ⬇``Ctrl + ⬇` | 增加透明度 | ||
52-
| `Shift + ⬆` | 增加倍速 + 0.25 |||
53-
| `Shift + ⬇` | 减少倍速 - 0.25 |||
54-
48+
| `⌘ + →``Ctrl + →` | 下一集 |||
49+
| `⌘ + ←``Ctrl + ←` | 上一集 |||
50+
| `⌘ + ↑``Ctrl + ↑` | 减少透明度 | ||
51+
| `⌘ + ↓``Ctrl + ↓` | 增加透明度 | ||
52+
| `Shift + ↑` | 增加倍速 + 0.25 |||
53+
| `Shift + ↓` | 减少倍速 - 0.25 |||
5554

5655
#### 下载:
5756

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zy",
3-
"version": "1.0.10",
3+
"version": "1.0.11",
44
"private": true,
55
"author": {
66
"name": "Hunlongyu",

src/assets/scss/style.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@
151151
padding-left: 10px;
152152
font-size: 12px;
153153
}
154+
.btn{
155+
cursor: pointer;
156+
}
154157
}
155158
}
156159

src/background.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ function createMini () {
7676

7777
app.allowRendererProcessReuse = true
7878
app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors')
79+
if (process.platform === 'Linux') {
80+
app.disableHardwareAcceleration()
81+
}
7982

8083
app.on('window-all-closed', () => {
8184
if (process.platform !== 'darwin') {

src/components/Film.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
</div>
7070
<div class="tFooter">
7171
<span class="tFooter-span">今日更新: {{ tb.update }} 条</span>
72+
<span class="tFooter-span btn" @click="goWebsite">前往该资源网</span>
7273
<el-pagination small :page-size="tb.size" :total="tb.total" :current-page="tb.page" @current-change="tbPageChange" layout="total, prev, pager, next, jumper"></el-pagination>
7374
</div>
7475
</div>
@@ -81,6 +82,7 @@ import { sites, getSite } from '../lib/site/sites'
8182
import tools from '../lib/site/tools'
8283
import video from '../lib/dexie/video'
8384
import setting from '../lib/dexie/setting'
85+
import { shell } from 'electron'
8486
const { clipboard } = require('electron')
8587
export default {
8688
name: 'film',
@@ -297,6 +299,9 @@ export default {
297299
this.tb.list = res.list
298300
this.tb.loading = false
299301
})
302+
},
303+
goWebsite () {
304+
shell.openExternal(this.site.url)
300305
}
301306
},
302307
created () {

src/mini/Mini.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export default {
9292
this.xg.on('ended', () => {
9393
if (this.d.m3u8_urls.length > 1 && (this.d.m3u8_urls.length - 1 > this.index)) {
9494
this.video.currentTime = 0
95+
this.video.index++
9596
this.index++
9697
let src = this.d.m3u8_urls[this.index]
9798
src = src.split('$')[1]
@@ -122,6 +123,7 @@ export default {
122123
if (res) {
123124
const v = res
124125
v.currentTime = this.xg.currentTime
126+
v.index = this.index
125127
const id = v.id
126128
delete v.id
127129
history.update(id, v)

0 commit comments

Comments
 (0)