From: Sergey M․ Date: Sat, 12 Aug 2017 10:11:35 +0000 (+0700) Subject: [extractor/common] Make _family_friendly_search optional X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=ac8491fcca6f9c0f6c7904e1cf13953f912eeb39;p=youtube-dl [extractor/common] Make _family_friendly_search optional --- diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 4d61275fd..e565901af 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -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