[ie/crunchyroll] Use hardsub_lang instead of format_id hardsub format filtering

This commit is contained in:
Oliver Hattshire 2024-05-05 20:07:01 -04:00
parent 698191c045
commit 342f2e44ac
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ class CrunchyrollBaseIE(InfoExtractor):
'See https://github.com/yt-dlp/yt-dlp#crunchyrollbeta-crunchyroll for more info',
only_once=True)
else:
full_format_langs = set(map(str.lower, available_formats))
full_format_langs = set(map(lambda v: str.lower(v[1]), available_formats.values()))
hardsub_preference = qualities(requested_hardsubs[::-1])
formats, subtitles = [], {}