diff --git a/src/renderer/components/ft-list-video/ft-list-video.js b/src/renderer/components/ft-list-video/ft-list-video.js index 682ecef11..5f31a7ff0 100644 --- a/src/renderer/components/ft-list-video/ft-list-video.js +++ b/src/renderer/components/ft-list-video/ft-list-video.js @@ -252,6 +252,7 @@ export default Vue.extend({ watchProgress: this.watchProgress, playbackRate: this.defaultPlayback, videoId: this.id, + videoLength: this.data.lengthSeconds, playlistId: this.playlistId, playlistIndex: this.playlistIndex, playlistReverse: this.playlistReverse, diff --git a/src/renderer/components/watch-video-info/watch-video-info.js b/src/renderer/components/watch-video-info/watch-video-info.js index 8f2518fe9..0d218f2ba 100644 --- a/src/renderer/components/watch-video-info/watch-video-info.js +++ b/src/renderer/components/watch-video-info/watch-video-info.js @@ -303,6 +303,7 @@ export default Vue.extend({ watchProgress: this.getTimestamp(), playbackRate: this.defaultPlayback, videoId: this.id, + videoLength: this.lengthSeconds, playlistId: this.playlistId, playlistIndex: this.getPlaylistIndex(), playlistReverse: this.getPlaylistReverse(), diff --git a/src/renderer/store/modules/utils.js b/src/renderer/store/modules/utils.js index a8bdb99e2..d0d2be5e7 100644 --- a/src/renderer/store/modules/utils.js +++ b/src/renderer/store/modules/utils.js @@ -895,7 +895,7 @@ const actions = { args.push(...defaultCustomArguments) } - if (payload.watchProgress > 0) { + if (payload.watchProgress > 0 && payload.watchProgress < payload.videoLength - 10) { if (typeof cmdArgs.startOffset === 'string') { args.push(`${cmdArgs.startOffset}${payload.watchProgress}`) } else {