Fixed bug where auto started downloads would begin if navigated back from the player

pull/33/head
Isaac Grynsztein 6 years ago
parent 1837101083
commit 35f8454db3

@ -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 {

Loading…
Cancel
Save