diff --git a/src/app/components/custom-playlists/custom-playlists.component.ts b/src/app/components/custom-playlists/custom-playlists.component.ts index 3914586..6071d3d 100644 --- a/src/app/components/custom-playlists/custom-playlists.component.ts +++ b/src/app/components/custom-playlists/custom-playlists.component.ts @@ -59,7 +59,9 @@ export class CustomPlaylistsComponent implements OnInit { this.downloadPlaylist(playlist.id, playlist.name); } else { localStorage.setItem('player_navigator', this.router.url); - this.router.navigate(['/player', {playlist_id: playlistID, auto: playlist.auto}]); + const routeParams = {playlist_id: playlistID}; + if (playlist.auto) { routeParams['auto'] = playlist.auto; } + this.router.navigate(['/player', routeParams]); } } else { // playlist not found diff --git a/src/app/player/player.component.html b/src/app/player/player.component.html index fc8dbac..a908e73 100644 --- a/src/app/player/player.component.html +++ b/src/app/player/player.component.html @@ -29,7 +29,7 @@