mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-25 02:45:12 +00:00
[disney] Avoid splitting NoneType
This commit is contained in:
parent
1525369833
commit
683c166daa
1 changed files with 4 additions and 4 deletions
|
@ -5,9 +5,9 @@
|
||||||
determine_ext,
|
determine_ext,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
join_nonempty,
|
join_nonempty,
|
||||||
|
traverse_obj,
|
||||||
unified_strdate,
|
unified_strdate,
|
||||||
update_url_query,
|
update_url_query,
|
||||||
traverse_obj,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ def _real_extract(self, url):
|
||||||
'description': video_data.get('description') or video_data.get('short_desc'),
|
'description': video_data.get('description') or video_data.get('short_desc'),
|
||||||
'thumbnail': video_data.get('thumb') or video_data.get('thumb_secure'),
|
'thumbnail': video_data.get('thumb') or video_data.get('thumb_secure'),
|
||||||
'duration': int_or_none(video_data.get('duration_sec')),
|
'duration': int_or_none(video_data.get('duration_sec')),
|
||||||
'upload_date': unified_strdate(video_data.get('publish_date')) or re.sub(r'\D', '', video_data.get('content_date').split('T')[0]),
|
'upload_date': unified_strdate(video_data.get('publish_date')) or re.sub(r'\D', '', video_data.get('content_date', '').split('T')[0]),
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
'subtitles': subtitles,
|
'subtitles': subtitles,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue