A feature-rich command-line audio/video downloader
[extractor/common] Make _family_friendly_search optional
Sergey M․ac8491fcca6f
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.pyindex 4d61275fd2..e565901afc 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