mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 12:43:25 +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;
|
||||
const type = getCaptionTypeFromUrl(track.file);
|
||||
if (!type) return;
|
||||
const language = labelToLanguageCode(track.label);
|
||||
const language = labelToLanguageCode(track.label.split(' ')[0]);
|
||||
if (!language) return;
|
||||
captions.push({
|
||||
id: track.file,
|
||||
|
Reference in New Issue
Block a user