1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-29 11:44:33 +01:00

Swapped a square bracket for get

This commit is contained in:
Ben Bryant 2020-04-20 10:37:04 -07:00
parent dae0247122
commit 9c43316562

View File

@ -170,7 +170,7 @@ class FunimationIE(InfoExtractor):
text_tracks_json_string, display_id, js_to_json, fatal=False) or []
subtitles = {}
for text_track in text_tracks:
url_element = {'url': text_track['src']}
url_element = {'url': text_track.get('src')}
language = text_track.get('language')
if language in subtitles:
subtitles[language].append(url_element)