mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-11 07:11:29 +03:00
Fixed bug where auto started downloads would begin if navigated back from the player
This commit is contained in:
@@ -477,7 +477,7 @@ export class MainComponent implements OnInit {
|
|||||||
this.downloadAudioFile(decodeURI(name));
|
this.downloadAudioFile(decodeURI(name));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
localStorage.setItem('player_navigator', this.router.url);
|
localStorage.setItem('player_navigator', this.router.url.split(';')[0]);
|
||||||
if (is_playlist) {
|
if (is_playlist) {
|
||||||
this.router.navigate(['/player', {fileNames: name.join('|nvr|'), type: 'audio'}]);
|
this.router.navigate(['/player', {fileNames: name.join('|nvr|'), type: 'audio'}]);
|
||||||
} else {
|
} else {
|
||||||
@@ -515,7 +515,7 @@ export class MainComponent implements OnInit {
|
|||||||
this.downloadVideoFile(decodeURI(name));
|
this.downloadVideoFile(decodeURI(name));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
localStorage.setItem('player_navigator', this.router.url);
|
localStorage.setItem('player_navigator', this.router.url.split(';')[0]);
|
||||||
if (is_playlist) {
|
if (is_playlist) {
|
||||||
this.router.navigate(['/player', {fileNames: name.join('|nvr|'), type: 'video'}]);
|
this.router.navigate(['/player', {fileNames: name.join('|nvr|'), type: 'video'}]);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user