1
0
Fork 0

[extractor] Allow non-fatal title extraction

This commit is contained in:
pukkandan 2022-01-24 21:01:17 +05:30
commit fc08bdd6ab
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
3 changed files with 10 additions and 3 deletions

View file

@ -1291,7 +1291,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, fatal=False, **kargs)
def _og_search_video_url(self, html, name='video url', secure=True, **kargs):
regexes = self._og_regexes('video') + self._og_regexes('video:url')