diff --git a/src/app/services/epg.service.ts b/src/app/services/epg.service.ts index 38ebe2d18..e45b678a8 100644 --- a/src/app/services/epg.service.ts +++ b/src/app/services/epg.service.ts @@ -31,12 +31,14 @@ export class EpgService { if (!Array.isArray(urls)) { urls = [urls]; } - urls.forEach((url) => - this.electronService.sendIpcEvent(EPG_FETCH, { - url, - }) - ); - this.showFetchSnackbar(); + if (urls?.length > 0) { + urls.forEach((url) => + this.electronService.sendIpcEvent(EPG_FETCH, { + url, + }) + ); + this.showFetchSnackbar(); + } } showFetchSnackbar() {