Fixed issue where navigating to a sub's video would play all videos from the subscription

This commit is contained in:
Isaac Abadi
2021-09-21 20:03:26 -06:00
parent 58a0dc4afe
commit 8aa354ac24

View File

@@ -202,7 +202,7 @@ export class RecentVideosComponent implements OnInit {
} else {
// normal subscriptions
!new_tab ? this.router.navigate(['/player', {uid: file.uid,
type: file.isAudio ? 'audio' : 'video', sub_id: sub.id}])
type: file.isAudio ? 'audio' : 'video'}])
: window.open(`/#/player;uid=${file.uid};type=${file.isAudio ? 'audio' : 'video'}`);
}
} else {