1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-25 09:11:34 +00:00

[extractor/common] Make _family_friendly_search optional

This commit is contained in:
Sergey M․ 2017-08-12 17:11:35 +07:00
parent 82889d4ae5
commit ac8491fcca
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -940,7 +940,8 @@ class InfoExtractor(object):
def _family_friendly_search(self, html):
# See http://schema.org/VideoObject
family_friendly = self._html_search_meta('isFamilyFriendly', html)
family_friendly = self._html_search_meta(
'isFamilyFriendly', html, default=None)
if not family_friendly:
return None