mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-12-23 04:30:10 +09:00
[extractor/common] Make _family_friendly_search optional
This commit is contained in:
parent
82889d4ae5
commit
ac8491fcca
@ -940,7 +940,8 @@ class InfoExtractor(object):
|
|||||||
|
|
||||||
def _family_friendly_search(self, html):
|
def _family_friendly_search(self, html):
|
||||||
# See http://schema.org/VideoObject
|
# 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:
|
if not family_friendly:
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user