Fix mistake done with captions

Swap languages and type's place
This commit is contained in:
teddyHV11 2024-04-09 17:44:41 +03:00
parent 082d2754be
commit 5b836a4839
1 changed files with 3 additions and 2 deletions

View File

@ -61,8 +61,8 @@ export const insertunitScraper = makeSourcerer({
captions.push({
id: subtitle.url,
url: subtitle.url,
type: 'vtt',
language,
type: 'vtt',
hasCorsRestrictions: false,
});
}
@ -122,14 +122,15 @@ export const insertunitScraper = makeSourcerer({
captions.push({
id: subtitle.url,
url: subtitle.url,
type: 'vtt',
language,
type: 'vtt',
hasCorsRestrictions: false,
});
}
captions = removeDuplicatedLanguages(captions);
}
ctx.progress(90);
return {
embeds: [],