From 35f8454db35efd1f1f2d6d0e146a4848c8f948e7 Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Tue, 17 Mar 2020 18:20:25 -0400 Subject: [PATCH] Fixed bug where auto started downloads would begin if navigated back from the player --- src/app/main/main.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/main/main.component.ts b/src/app/main/main.component.ts index 73ca33e..9103fa1 100644 --- a/src/app/main/main.component.ts +++ b/src/app/main/main.component.ts @@ -477,7 +477,7 @@ export class MainComponent implements OnInit { this.downloadAudioFile(decodeURI(name)); } } else { - localStorage.setItem('player_navigator', this.router.url); + localStorage.setItem('player_navigator', this.router.url.split(';')[0]); if (is_playlist) { this.router.navigate(['/player', {fileNames: name.join('|nvr|'), type: 'audio'}]); } else { @@ -515,7 +515,7 @@ export class MainComponent implements OnInit { this.downloadVideoFile(decodeURI(name)); } } else { - localStorage.setItem('player_navigator', this.router.url); + localStorage.setItem('player_navigator', this.router.url.split(';')[0]); if (is_playlist) { this.router.navigate(['/player', {fileNames: name.join('|nvr|'), type: 'video'}]); } else {