mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-25 22:20:56 +03:00
Updated playlist file selection to use recent videos component
Playlists are now file type agnostic Updated translations
This commit is contained in:
@@ -35,15 +35,9 @@ export class ModifyPlaylistComponent implements OnInit {
|
||||
}
|
||||
|
||||
getFiles() {
|
||||
if (this.playlist.type === 'audio') {
|
||||
this.postsService.getMp3s().subscribe(res => {
|
||||
this.processFiles(res['mp3s']);
|
||||
});
|
||||
} else {
|
||||
this.postsService.getMp4s().subscribe(res => {
|
||||
this.processFiles(res['mp4s']);
|
||||
});
|
||||
}
|
||||
this.postsService.getAllFiles().subscribe(res => {
|
||||
this.processFiles(res['files']);
|
||||
});
|
||||
}
|
||||
|
||||
processFiles(new_files = null) {
|
||||
|
||||
Reference in New Issue
Block a user