make playlists ignore user history
authorRigel Kent <sendmemail@rigelk.eu>
Wed, 11 Dec 2019 19:24:17 +0000 (20:24 +0100)
committerChocobozzz <chocobozzz@cpy.re>
Fri, 13 Dec 2019 08:13:43 +0000 (09:13 +0100)
client/src/app/videos/+video-watch/video-watch.component.ts

index f13acec40aaf7326cbcb12614eb171cb0d529a5f..92c1c50c01444f081eafadbec552d0464618a04e 100644 (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