From: Naglis Jonaitis Date: Sun, 8 Feb 2015 15:45:38 +0000 (+0200) Subject: Use _family_friendly_search for determining age_limit X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=641eb10d34629c177445dd38e9d3f1f73c4cb92f;p=youtube-dl Use _family_friendly_search for determining age_limit --- diff --git a/youtube_dl/extractor/aparat.py b/youtube_dl/extractor/aparat.py index 5d70758a3..63429780e 100644 --- a/youtube_dl/extractor/aparat.py +++ b/youtube_dl/extractor/aparat.py @@ -20,6 +20,7 @@ class AparatIE(InfoExtractor): 'id': 'wP8On', 'ext': 'mp4', 'title': 'تیم گلکسی 11 - زومیت', + 'age_limit': 0, }, # 'skip': 'Extremely unreliable', } @@ -55,4 +56,5 @@ class AparatIE(InfoExtractor): 'url': video_url, 'ext': 'mp4', 'thumbnail': thumbnail, + 'age_limit': self._family_friendly_search(webpage), } diff --git a/youtube_dl/extractor/goshgay.py b/youtube_dl/extractor/goshgay.py index b116d251d..1d9166455 100644 --- a/youtube_dl/extractor/goshgay.py +++ b/youtube_dl/extractor/goshgay.py @@ -34,8 +34,6 @@ class GoshgayIE(InfoExtractor): duration = parse_duration(self._html_search_regex( r'\s*-?\s*(.*?)', webpage, 'duration', fatal=False)) - family_friendly = self._html_search_meta( - 'isFamilyFriendly', webpage, default='false') flashvars = compat_parse_qs(self._html_search_regex( r'