Browse Source

[extractor/common] Make _family_friendly_search optional

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
ac8491fcca
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/common.py

+ 2
- 1
youtube_dl/extractor/common.py View File

@ -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


Loading…
Cancel
Save