aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-08-12 17:11:35 +0700
committerSergey M․ <dstftw@gmail.com>2017-08-12 17:11:35 +0700
commitac8491fcca6f9c0f6c7904e1cf13953f912eeb39 (patch)
tree3a26997a55c63be878b462fc43e5505782f8f21f /youtube_dl
parent82889d4ae517640df217f99e7744002e0deba47a (diff)
downloadyoutube-dl-ac8491fcca6f9c0f6c7904e1cf13953f912eeb39.zip
youtube-dl-ac8491fcca6f9c0f6c7904e1cf13953f912eeb39.tar.gz
youtube-dl-ac8491fcca6f9c0f6c7904e1cf13953f912eeb39.tar.bz2
[extractor/common] Make _family_friendly_search optional
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 4d61275..e565901 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