From 12f18b90ba6395464606052bb1bdfedb6b83df13 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 11 Dec 2019 20:24:17 +0100 Subject: [PATCH] make playlists ignore user history --- client/src/app/videos/+video-watch/video-watch.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts index f13acec40..92c1c50c0 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts @@ -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 -- 2.41.0