File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/modules/webtoon/webtoon Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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." ) ) ;
You can’t perform that action at this time.
0 commit comments