Skip to content

Commit 874d391

Browse files
committed
🚑 Try fixing general queuing again
1 parent fc00e1b commit 874d391

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/modules/webtoon/webtoon/download-manager.service.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,12 @@ export class DownloadManagerService{
7474
this.logger.debug(`Language ${webtoonLanguageName.language} not found in cache. Skipping...`);
7575
continue;
7676
}
77-
this.downloadQueue.enqueue(webtoonLanguage.find(w => w.title === webtoonLanguageName.title) as CachedWebtoonModel);
77+
const findWebtoon: CachedWebtoonModel = webtoonLanguage.find(w => w.title === webtoonLanguageName.title);
78+
if(!findWebtoon){
79+
this.logger.debug(`Webtoon ${webtoonLanguageName.title} not found in cache. Skipping...`);
80+
continue;
81+
}
82+
this.downloadQueue.enqueue(findWebtoon);
7883
}
7984
if(!this.downloadQueue.getCurrentDownload())
8085
this.startDownload().then(() => console.log("Download finished."));

0 commit comments

Comments
 (0)