Skip to content

Commit e3dc6e1

Browse files
committed
feat(scraper): Added all image services for movies
1 parent 5746b58 commit e3dc6e1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

apps/scraper/src/scraper.module.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { MovieHelperModule } from '@pct-org/scraper/movie-helper'
88

99
import { TraktModule } from '@pct-org/services/trakt'
1010
import { TmdbModule } from '@pct-org/services/tmdb'
11+
import { FanartModule } from '@pct-org/services/fanart'
12+
import { OmdbModule } from '@pct-org/services/omdb'
1113

1214
import { ConfigModule } from './shared/config/config.module'
1315
import { ConfigService } from './shared/config/config.service'
@@ -23,6 +25,8 @@ import { ProvidersService } from './providers/providers.service'
2325

2426
TraktModule,
2527
TmdbModule,
28+
FanartModule,
29+
OmdbModule,
2630

2731
ProvidersModule,
2832

@@ -54,15 +58,13 @@ export class ScraperModule implements OnApplicationBootstrap {
5458
) {
5559
}
5660

57-
protected onApplicationBootstrap(): void {
61+
public onApplicationBootstrap(): void {
5862
const job = new CronJob(this.configService.get('CRON_TIME'), this.scrapeConfigs)
5963

6064
this.schedulerRegistry.addCronJob(ScraperModule.JOB_NAME, job)
6165
job.start()
6266

6367
this.logger.log(`Enabled cron on '${this.configService.get('CRON_TIME')}'`)
64-
65-
this.scrapeConfigs()
6668
}
6769

6870
private async scrapeConfigs(): Promise<void> {

0 commit comments

Comments
 (0)