fix(epg): improve error handling

This commit is contained in:
4gray committed 2024-03-28 23:32:30 +01:00
1 parent dab6e55fc9
commit 57cb3a9cc0
2 files changed
+31 -30

No files matched your search

+4 -1
View File
@@ -149,7 +149,10 @@ export class AppComponent {
.subscribe((settings: Settings) => {
if (settings && Object.keys(settings).length > 0) {
this.translate.use(settings.language ?? this.DEFAULT_LANG);
if (settings.epgUrl) {
if (
settings.epgUrl?.length > 0 &&
settings.epgUrl?.some((u) => u !== '')
) {
this.epgService.fetchEpg(settings.epgUrl);
}