1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00

remove not supported "en" locale variable

This commit is contained in:
v3DJG6GL 2025-02-27 20:20:06 +01:00 committed by GitHub
parent d41aa41408
commit 4c8e7e7b6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -232,7 +232,7 @@ def _real_extract(self, url):
media_id = self._match_id(url)
query = parse_qs(url)
locale_param = (query.get('locale') or ['de'])[0].lower()
locale = locale_param if locale_param in {'fr', 'en', 'it', 'de', 'rm'} else 'de'
locale = locale_param if locale_param in {'de', 'fr', 'it', 'rm'} else 'de'
media_data = self._get_media_data(media_id, locale)
info = self._extract_single(media_data)
if media_data.get('episodes'):