1
0
mirror of https://github.com/l1ving/youtube-dl synced 2020-11-18 19:53:54 -08:00

[common:opengraph] Don't fail on missing title (fixes #18590)

This commit is contained in:
bitraid 2019-02-12 11:27:00 +02:00
parent 985637cbbf
commit 5785dba37e
No known key found for this signature in database
GPG Key ID: 140D99CA504654D3

View File

@ -1092,7 +1092,7 @@ class InfoExtractor(object):
return self._og_search_property('description', html, fatal=False, **kargs)
def _og_search_title(self, html, **kargs):
return self._og_search_property('title', html, **kargs)
return self._og_search_property('title', html, default='untitled', **kargs)
def _og_search_video_url(self, html, name='video url', secure=True, **kargs):
regexes = self._og_regexes('video') + self._og_regexes('video:url')