make playlists ignore user history

pull/2157/head
Rigel Kent 2019-12-11 20:24:17 +01:00 committed by Chocobozzz
parent bee29df8a9
commit 12f18b90ba
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
}) {
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 (video.duration - startTime <= 1) startTime = 0