mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 14:53:24 +00:00
Strip native language suffix from caption label
This commit is contained in:
@@ -110,7 +110,7 @@ export const upcloudScraper = makeEmbed({
|
|||||||
if (track.kind !== 'captions') return;
|
if (track.kind !== 'captions') return;
|
||||||
const type = getCaptionTypeFromUrl(track.file);
|
const type = getCaptionTypeFromUrl(track.file);
|
||||||
if (!type) return;
|
if (!type) return;
|
||||||
const language = labelToLanguageCode(track.label);
|
const language = labelToLanguageCode(track.label.split(' ')[0]);
|
||||||
if (!language) return;
|
if (!language) return;
|
||||||
captions.push({
|
captions.push({
|
||||||
id: track.file,
|
id: track.file,
|
||||||
|
Reference in New Issue
Block a user