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

View File

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