youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit ac8491fcca6f9c0f6c7904e1cf13953f912eeb39
parent 82889d4ae517640df217f99e7744002e0deba47a
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sat, 12 Aug 2017 17:11:35 +0700

[extractor/common] Make _family_friendly_search optional

Diffstat:
Myoutube_dl/extractor/common.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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