Fix #298
This commit is contained in:
parent
3854cb0d4e
commit
89bd225391
1 changed files with 1 additions and 1 deletions
|
|
@ -1205,7 +1205,7 @@ export default class Crunchy implements ServiceClass {
|
|||
sxData.language = langItem;
|
||||
sxData.file = langsData.subsFile(fileName as string, subsIndex, langItem);
|
||||
sxData.path = path.join(this.cfg.dir.content, sxData.file);
|
||||
if (files.some(a => a.type === 'Subtitle' && (a.language.code == langItem.code || a.language.locale == langItem.locale)))
|
||||
if (files.some(a => a.type === 'Subtitle' && (a.language.cr_locale == langItem.cr_locale || a.language.locale == langItem.locale)))
|
||||
continue;
|
||||
if(options.dlsubs.includes('all') || options.dlsubs.includes(langItem.locale)){
|
||||
const subsAssReq = await this.req.getData(subsItem.url);
|
||||
|
|
|
|||
Loading…
Reference in a new issue