Limit auto-generated subtitle langs to en/sv/ja in CC dropdown
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1006,8 +1006,10 @@ export default function Watch() {
|
|||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const AUTO_LANGS = new Set(["en", "sv", "ja"]);
|
||||||
const ytManual = (availableSubs?.manual ?? []).filter(l => !onDiskSet.has(l));
|
const ytManual = (availableSubs?.manual ?? []).filter(l => !onDiskSet.has(l));
|
||||||
const ytAuto = (availableSubs?.auto ?? []).filter(l => !onDiskSet.has(l) && !ytManual.includes(l));
|
const ytManualSet = new Set(ytManual);
|
||||||
|
const ytAuto = (availableSubs?.auto ?? []).filter(l => !onDiskSet.has(l) && !ytManualSet.has(l) && AUTO_LANGS.has(l));
|
||||||
const needsDownload = selectedSubLang && !onDiskSet.has(selectedSubLang);
|
const needsDownload = selectedSubLang && !onDiskSet.has(selectedSubLang);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user