mirror of
https://github.com/sussy-code/providers.git
synced 2026-04-19 07:32:08 +00:00
Strip native language suffix from caption label
This commit is contained in:
parent
28b15e5a36
commit
69da27d6dc
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue