mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 11:33:25 +00:00
Fix mistake done with captions
Swap languages and type's place
This commit is contained in:
@@ -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: [],
|
||||||
|
Reference in New Issue
Block a user