mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-17 00:11:29 +03:00
Deleting a video with an extension in the filename will now work UI-side
This commit is contained in:
@@ -439,10 +439,11 @@ export class MainComponent implements OnInit {
|
|||||||
|
|
||||||
public removeFromMp3(name: string) {
|
public removeFromMp3(name: string) {
|
||||||
for (let i = 0; i < this.mp3s.length; i++) {
|
for (let i = 0; i < this.mp3s.length; i++) {
|
||||||
if (this.mp3s[i].id === name) {
|
if (this.mp3s[i].id === name || this.mp3s[i].id + '.mp3' === name) {
|
||||||
this.mp3s.splice(i, 1);
|
this.mp3s.splice(i, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.getMp3s();
|
||||||
}
|
}
|
||||||
|
|
||||||
public removePlaylistMp3(playlistID, index) {
|
public removePlaylistMp3(playlistID, index) {
|
||||||
@@ -457,10 +458,11 @@ export class MainComponent implements OnInit {
|
|||||||
|
|
||||||
public removeFromMp4(name: string) {
|
public removeFromMp4(name: string) {
|
||||||
for (let i = 0; i < this.mp4s.length; i++) {
|
for (let i = 0; i < this.mp4s.length; i++) {
|
||||||
if (this.mp4s[i].id === name) {
|
if (this.mp4s[i].id === name || this.mp4s[i].id + '.mp4' === name) {
|
||||||
this.mp4s.splice(i, 1);
|
this.mp4s.splice(i, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.getMp4s();
|
||||||
}
|
}
|
||||||
|
|
||||||
public removePlaylistMp4(playlistID, index) {
|
public removePlaylistMp4(playlistID, index) {
|
||||||
|
|||||||
Reference in New Issue
Block a user