1
0
Fork 0

make playlists ignore user history

This commit is contained in:
Rigel Kent 2019-12-11 20:24:17 +01:00 committed by Chocobozzz
parent bee29df8a9
commit 12f18b90ba

View file

@ -570,7 +570,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
}) { }) {
const { video, videoCaptions, urlOptions, user } = params const { video, videoCaptions, urlOptions, user } = params
let startTime = timeToInt(urlOptions.startTime) || (video.userHistory ? video.userHistory.currentTime : 0) let startTime = timeToInt(urlOptions.startTime) || (video.userHistory && !this.playlist ? video.userHistory.currentTime : 0)
// If we are at the end of the video, reset the timer // If we are at the end of the video, reset the timer
if (video.duration - startTime <= 1) startTime = 0 if (video.duration - startTime <= 1) startTime = 0