mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-15 12:53:18 +00:00
[democracynow] Prevent required fields to be None
This commit is contained in:
parent
fd8102820c
commit
0aeb9a106e
|
@ -80,8 +80,8 @@ def add_subtitle_item(lang, info_dict):
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id or display_id,
|
||||||
'title': json_data.get('title'),
|
'title': json_data['title'],
|
||||||
'description': description,
|
'description': description,
|
||||||
'subtitles': subtitles,
|
'subtitles': subtitles,
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
|
|
Loading…
Reference in a new issue