feat(preferences): section langues a telecharger (defaut fr+en), transcripts filtres cote serveur et watch
CI / build-and-test (push) Successful in 13m50s

This commit is contained in:
2026-09-26 11:49:56 -04:00
parent 1b0a7eb3ce
commit 655061ba2c
46 changed files with 2018 additions and 380 deletions
+13 -1
View File
@@ -79,7 +79,8 @@ export class HomeComponent {
return;
}
this.busyMore.set(true);
this.apiService.getTrendingPage(this.nextCursor()).subscribe(res => {
this.apiService.getTrendingPage(this.nextCursor()).subscribe({
next: res => {
const merged = [...this.trendingVideos(), ...res.items];
this.trendingVideos.set(merged);
this.nextCursor.set(res.nextCursor || null);
@@ -100,6 +101,17 @@ export class HomeComponent {
this.notice.set(`Les vidéos ne sont pas disponibles pour le provider "${label}" pour le moment. Réessayez plus tard ou choisissez un autre provider.`);
}
}
},
// Never leave the infinite scroll stuck: release flags so scrolling retries.
error: () => {
this.busyMore.set(false);
this.loading.set(false);
if (!this.notice()) {
this.notice.set(this.trendingVideos().length > 0
? 'Le chargement de la suite a échoué. Faites défiler pour réessayer.'
: 'Le chargement a échoué. Réessayez plus tard ou changez de fournisseur.');
}
}
});
}