mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-11 07:01:30 +03:00
Fixed bug that prevented video playlists from being deleted
This commit is contained in:
@@ -83,7 +83,7 @@ export class CustomPlaylistsComponent implements OnInit {
|
|||||||
const playlist = args.file;
|
const playlist = args.file;
|
||||||
const index = args.index;
|
const index = args.index;
|
||||||
const playlistID = playlist.id;
|
const playlistID = playlist.id;
|
||||||
this.postsService.removePlaylist(playlistID, 'audio').subscribe(res => {
|
this.postsService.removePlaylist(playlistID, playlist.type).subscribe(res => {
|
||||||
if (res['success']) {
|
if (res['success']) {
|
||||||
this.playlists.splice(index, 1);
|
this.playlists.splice(index, 1);
|
||||||
this.postsService.openSnackBar('Playlist successfully removed.', '');
|
this.postsService.openSnackBar('Playlist successfully removed.', '');
|
||||||
|
|||||||
Reference in New Issue
Block a user