mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[meta] Make duration and description optional
For iframe URLs
This commit is contained in:
parent
049da7cb6c
commit
eafa643715
1 changed files with 3 additions and 2 deletions
|
@ -47,9 +47,10 @@ def _real_extract(self, url):
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
'title': uppod_data.get('comment') or self._og_search_title(webpage),
|
'title': uppod_data.get('comment') or self._og_search_title(webpage),
|
||||||
'description': self._og_search_description(webpage),
|
'description': self._og_search_description(webpage, default=None),
|
||||||
'thumbnail': uppod_data.get('poster') or self._og_search_thumbnail(webpage),
|
'thumbnail': uppod_data.get('poster') or self._og_search_thumbnail(webpage),
|
||||||
'duration': int_or_none(self._og_search_property('video:duration', webpage)),
|
'duration': int_or_none(self._og_search_property(
|
||||||
|
'video:duration', webpage, default=None)),
|
||||||
}
|
}
|
||||||
if 'youtube.com/' in video_url:
|
if 'youtube.com/' in video_url:
|
||||||
info.update({
|
info.update({
|
||||||
|
|
Loading…
Reference in a new issue