mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-09-15 19:14:12 +00:00
[cleanup] Misc (#10807)
Closes #10751, Closes #10769, Closes #10791 Authored by: bashonly, Codenade, pzhlkj6612, seproDev, coletdjnz, grqz, Grub4K Co-authored-by: Codenade <[email protected]> Co-authored-by: Mozi <[email protected]> Co-authored-by: sepro <[email protected]> Co-authored-by: coletdjnz <[email protected]> Co-authored-by: N/Ame <[email protected]> Co-authored-by: Simon Sawicki <[email protected]>
This commit is contained in:
co-authored by
Codenade
Mozi
sepro
coletdjnz
N/Ame
Simon Sawicki
parent
cca534cd9e
commit
c6387abc1a
@@ -90,7 +90,7 @@ class ViuIE(ViuBaseIE):
|
||||
formats, subtitles = self._extract_m3u8_formats_and_subtitles(m3u8_url, video_id, 'mp4')
|
||||
|
||||
for key, value in video_data.items():
|
||||
mobj = re.match(r'^subtitle_(?P<lang>[^_]+)_(?P<ext>(vtt|srt))', key)
|
||||
mobj = re.match(r'subtitle_(?P<lang>[^_]+)_(?P<ext>(vtt|srt))', key)
|
||||
if not mobj:
|
||||
continue
|
||||
subtitles.setdefault(mobj.group('lang'), []).append({
|
||||
|
||||
Reference in New Issue
Block a user