Fixed bug where updating an audio playlist would cause it to believe it was a video playlist

This commit is contained in:
Isaac Grynsztein
2020-03-26 13:28:26 -04:00
parent ca3a42c075
commit 5af0d742ef

View File

@@ -264,7 +264,7 @@ export class PlayerComponent implements OnInit {
this.playlist_updating = false;
if (res['success']) {
const fileNamesEncoded = fileNames.join('|nvr|');
this.router.navigate(['/player', {fileNames: fileNamesEncoded, type: 'video', id: this.id}]);
this.router.navigate(['/player', {fileNames: fileNamesEncoded, type: this.type, id: this.id}]);
this.openSnackBar('Successfully updated playlist.', '');
this.original_playlist = JSON.stringify(this.playlist);
} else {