Skip to content

Commit

Permalink
fix(eztv-provider): Fixed missing await and wrong function called
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Oct 22, 2020
1 parent 9deae8f commit f58848a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/scraper/eztv-provider/src/eztv-provider.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class EztvProviderService extends BaseProvider {
protected async scrapeConfig(config: ScraperProviderConfig): Promise<void> {
this.setConfig(config)

const contents: ScrapedItem[] = await this.api.getAll()
const contents: ScrapedItem[] = await this.api.getAllShows()

this.logger.log(`${this.name}: Found ${contents.length} ${this.contentType}s.`)

Expand All @@ -44,7 +44,7 @@ export class EztvProviderService extends BaseProvider {
if (!isInBlacklist) {
try {
// Get full show data
const show: ScrapedItem = this.api.getShowData(content)
const show: ScrapedItem = await this.api.getShowData(content)

// Enhance and import the show
await this.enhanceAndImport(show)
Expand Down

0 comments on commit f58848a

Please sign in to comment.