mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-12 19:11:29 +03:00
Unified videos videos are now properly retrieved from the server
This commit is contained in:
@@ -15,10 +15,19 @@ export class RecentVideosComponent implements OnInit {
|
||||
constructor(private postsService: PostsService) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
this.postsService.service_initialized.subscribe(init => {
|
||||
if (init) {
|
||||
this.getAllFiles();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
getAllFiles() {
|
||||
|
||||
this.normal_files_received = false;
|
||||
this.postsService.getAllFiles().subscribe(res => {
|
||||
this.files = res['files'];
|
||||
this.files.sort(this.sortFiles);
|
||||
});
|
||||
}
|
||||
|
||||
sortFiles(a, b) {
|
||||
|
||||
Reference in New Issue
Block a user