mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-11-21 20:50:04 +02:00
[ie/arte] Fix subtitles extraction (#17675)
Closes #18053, Closes #18089 Authored by: BlackBadPinguin
This commit is contained in:
@@ -133,7 +133,7 @@ class ArteTVIE(ArteTVBaseIE):
|
||||
for lang, sub_formats in subs.items():
|
||||
for fmt in sub_formats:
|
||||
url = fmt.get('url') or ''
|
||||
suffix = ('acc' if url.endswith('-MAL.m3u8')
|
||||
suffix = ('acc' if re.search(r'[_-]MAL[._-]', url)
|
||||
else 'forced' if '_VO' not in url
|
||||
else None)
|
||||
updated_subs.setdefault(join_nonempty(lang, suffix), []).append(fmt)
|
||||
|
||||
Reference in New Issue
Block a user