mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 16:44:32 +01:00
[ard] prevent empty list for a key
This commit is contained in:
parent
4ad89eb36b
commit
0434e3e22f
@ -286,7 +286,7 @@ class ARDIE(InfoExtractor):
|
||||
return {
|
||||
'id': mobj.group('id'),
|
||||
'formats': formats,
|
||||
'subtitles': {'de': subtitles},
|
||||
'subtitles': {'de': subtitles} if subtitles else None,
|
||||
'display_id': display_id,
|
||||
'title': video_node.find('./title').text,
|
||||
'duration': parse_duration(video_node.find('./duration').text),
|
||||
|
Loading…
Reference in New Issue
Block a user