1
0
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:
Niklas 2018-10-05 00:32:16 +02:00
parent 4ad89eb36b
commit 0434e3e22f
No known key found for this signature in database
GPG Key ID: C7070AE8E74845B8

View File

@ -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),