mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-24 13:40:57 +03:00
fixed bug in retrieving videos for subscription when name was not present
This commit is contained in:
@@ -26,7 +26,7 @@ export class SubscriptionsComponent implements OnInit {
|
||||
|
||||
getSubscriptions() {
|
||||
this.subscriptions_loading = true;
|
||||
this.subscriptions = [];
|
||||
this.subscriptions = null;
|
||||
this.channel_subscriptions = [];
|
||||
this.playlist_subscriptions = [];
|
||||
this.postsService.getAllSubscriptions().subscribe(res => {
|
||||
@@ -43,6 +43,10 @@ export class SubscriptionsComponent implements OnInit {
|
||||
this.channel_subscriptions.push(sub);
|
||||
}
|
||||
}
|
||||
}, err => {
|
||||
this.subscriptions_loading = false;
|
||||
console.error('Failed to get subscriptions');
|
||||
this.openSnackBar('ERROR: Failed to get subscriptions!', 'OK.');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user