* Update video list display & watch page to not use stored watch progress when progress saving disabled (#3453)

This commit is contained in:
PikachuEXE 2023-04-20 22:43:59 +08:00 committed by GitHub
parent 0de7b82a62
commit 3597499df1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -499,7 +499,10 @@ export default defineComponent({
if (historyIndex !== -1) {
this.watched = true
this.watchProgress = this.historyCache[historyIndex].watchProgress
if (this.saveWatchedProgress) {
// For UX consistency, no progress reading if writing disabled
this.watchProgress = this.historyCache[historyIndex].watchProgress
}
if (this.historyCache[historyIndex].published !== '') {
const videoPublished = this.historyCache[historyIndex].published

View File

@ -944,7 +944,8 @@ export default defineComponent({
} else {
this.$refs.videoPlayer.player.currentTime(this.timestamp)
}
} else if (historyIndex !== -1) {
} else if (this.saveWatchedProgress && historyIndex !== -1) {
// For UX consistency, no progress reading if writing disabled
const watchProgress = this.historyCache[historyIndex].watchProgress
if (watchProgress < (this.videoLengthSeconds - 10)) {