Fix mistake done with captions
Swap languages and type's place
This commit is contained in:
parent
082d2754be
commit
5b836a4839
|
@ -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: [],
|
||||
|
|
Loading…
Reference in New Issue