From 5b836a48396c1780d236d93b01fd6a5b106dc5ba Mon Sep 17 00:00:00 2001 From: teddyHV11 Date: Tue, 9 Apr 2024 17:44:41 +0300 Subject: [PATCH] Fix mistake done with captions Swap languages and type's place --- src/providers/sources/insertunit/insertunit.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/providers/sources/insertunit/insertunit.ts b/src/providers/sources/insertunit/insertunit.ts index 5c89663..47455ae 100644 --- a/src/providers/sources/insertunit/insertunit.ts +++ b/src/providers/sources/insertunit/insertunit.ts @@ -61,8 +61,8 @@ export const insertunitScraper = makeSourcerer({ captions.push({ id: subtitle.url, url: subtitle.url, - type: 'vtt', language, + type: 'vtt', hasCorsRestrictions: false, }); } @@ -122,14 +122,15 @@ export const insertunitScraper = makeSourcerer({ captions.push({ id: subtitle.url, url: subtitle.url, - type: 'vtt', language, + type: 'vtt', hasCorsRestrictions: false, }); } captions = removeDuplicatedLanguages(captions); } + ctx.progress(90); return { embeds: [],