mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-29 19:47:54 +01:00
Swapped a square bracket for get
This commit is contained in:
parent
dae0247122
commit
9c43316562
@ -170,7 +170,7 @@ class FunimationIE(InfoExtractor):
|
|||||||
text_tracks_json_string, display_id, js_to_json, fatal=False) or []
|
text_tracks_json_string, display_id, js_to_json, fatal=False) or []
|
||||||
subtitles = {}
|
subtitles = {}
|
||||||
for text_track in text_tracks:
|
for text_track in text_tracks:
|
||||||
url_element = {'url': text_track['src']}
|
url_element = {'url': text_track.get('src')}
|
||||||
language = text_track.get('language')
|
language = text_track.get('language')
|
||||||
if language in subtitles:
|
if language in subtitles:
|
||||||
subtitles[language].append(url_element)
|
subtitles[language].append(url_element)
|
||||||
|
Loading…
Reference in New Issue
Block a user