From 641eb10d34629c177445dd38e9d3f1f73c4cb92f Mon Sep 17 00:00:00 2001 From: Naglis Jonaitis Date: Sun, 8 Feb 2015 17:45:38 +0200 Subject: [PATCH] Use _family_friendly_search for determining age_limit --- youtube_dl/extractor/aparat.py | 2 ++ youtube_dl/extractor/goshgay.py | 4 +--- youtube_dl/extractor/izlesene.py | 5 +---- youtube_dl/extractor/teamcoco.py | 7 +++++-- 4 files changed, 9 insertions(+), 9 deletions(-) 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 @@ def _real_extract(self, url): '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 @@ def _real_extract(self, url): 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'