diff options
author | Naglis Jonaitis <[email protected]> | 2015-02-08 17:45:38 +0200 |
---|---|---|
committer | Naglis Jonaitis <[email protected]> | 2015-02-08 17:45:38 +0200 |
commit | 641eb10d34629c177445dd38e9d3f1f73c4cb92f (patch) | |
tree | 069bb0ae4450761e98e9b74c7406e1674c0bbcc0 /youtube_dl/extractor/goshgay.py | |
parent | 69319969de40f62ccf1c471427d309b6555483f9 (diff) | |
download | youtube-dl-641eb10d34629c177445dd38e9d3f1f73c4cb92f.tar.gz youtube-dl-641eb10d34629c177445dd38e9d3f1f73c4cb92f.zip |
Use _family_friendly_search for determining age_limit
Diffstat (limited to 'youtube_dl/extractor/goshgay.py')
-rw-r--r-- | youtube_dl/extractor/goshgay.py | 4 |
1 files changed, 1 insertions, 3 deletions
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'<span class="duration">\s*-?\s*(.*?)</span>', webpage, 'duration', fatal=False)) - family_friendly = self._html_search_meta( - 'isFamilyFriendly', webpage, default='false') flashvars = compat_parse_qs(self._html_search_regex( r'<embed.+?id="flash-player-embed".+?flashvars="([^"]+)"', @@ -49,5 +47,5 @@ class GoshgayIE(InfoExtractor): 'title': title, 'thumbnail': thumbnail, 'duration': duration, - 'age_limit': 0 if family_friendly == 'true' else 18, + 'age_limit': self._family_friendly_search(webpage), } |