projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82889d4
)
[extractor/common] Make _family_friendly_search optional
author
Sergey M․
<dstftw@gmail.com>
Sat, 12 Aug 2017 10:11:35 +0000
(17:11 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 12 Aug 2017 10:11:35 +0000
(17:11 +0700)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 4d61275fd2726e4bd96493de1006ab0375f87cdf..e565901afce0ec6999a478ddf21b0b6745a6a966 100644
(file)
--- 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