Merge pull request #88 from Joristdh/fix-upcloud-captions

Fix missing captions from UpCloud/VidCloud embeds
This commit is contained in:
William Oldham
2024-02-29 13:10:22 +00:00
committed by GitHub

View File

@@ -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,