Skip to content

Commit

Permalink
fix error on no results from jackett
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsloth committed Jun 2, 2024
1 parent df9639f commit 7555d9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/scrapers/jackett/jackett-scraper.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ export class JackettScraperService implements ScraperService {
}

private getScraperSources(items: any[]): ScraperSource[] {
if (!items) {
return [];
}

return items
.map((item) => this.toScraperSource(item))
.filter((source: ScraperSource) => source.hash != null);
Expand Down

0 comments on commit 7555d9b

Please sign in to comment.