Get sub_paths with a loop
This commit is contained in:
parent
3ee59f9423
commit
2872ea4494
@ -312,11 +312,7 @@ class TVPlayIE(InfoExtractor):
|
||||
|
||||
# TODO: webvtt in m3u8
|
||||
subtitles = {}
|
||||
sub_paths = [
|
||||
video.get('sami_path'),
|
||||
video.get('subtitles_webvtt'),
|
||||
video.get('subtitles_for_hearing_impaired'),
|
||||
]
|
||||
sub_paths = [video.get(key) for key in ['sami_path', 'subtitles_webvtt', 'subtitles_for_hearing_impaired']]
|
||||
for path in sub_paths:
|
||||
if path:
|
||||
lang = self._search_regex(
|
||||
|
Loading…
x
Reference in New Issue
Block a user