diff options
author | Naglis Jonaitis <njonaitis@gmail.com> | 2015-02-08 17:45:38 +0200 |
---|---|---|
committer | Naglis Jonaitis <njonaitis@gmail.com> | 2015-02-08 17:45:38 +0200 |
commit | 641eb10d34629c177445dd38e9d3f1f73c4cb92f (patch) | |
tree | 069bb0ae4450761e98e9b74c7406e1674c0bbcc0 /youtube_dl/extractor/izlesene.py | |
parent | 69319969de40f62ccf1c471427d309b6555483f9 (diff) |
Use _family_friendly_search for determining age_limit
Diffstat (limited to 'youtube_dl/extractor/izlesene.py')
-rw-r--r-- | youtube_dl/extractor/izlesene.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/youtube_dl/extractor/izlesene.py b/youtube_dl/extractor/izlesene.py index d16d483ee..99a1361f8 100644 --- a/youtube_dl/extractor/izlesene.py +++ b/youtube_dl/extractor/izlesene.py @@ -80,9 +80,6 @@ class IzleseneIE(InfoExtractor): r'comment_count\s*=\s*\'([^\']+)\';', webpage, 'comment_count', fatal=False) - family_friendly = self._html_search_meta( - 'isFamilyFriendly', webpage, 'age limit', fatal=False) - content_url = self._html_search_meta( 'contentURL', webpage, 'content URL', fatal=False) ext = determine_ext(content_url, 'mp4') @@ -120,6 +117,6 @@ class IzleseneIE(InfoExtractor): 'duration': duration, 'view_count': int_or_none(view_count), 'comment_count': int_or_none(comment_count), - 'age_limit': 18 if family_friendly == 'False' else 0, + 'age_limit': self._family_friendly_search(webpage), 'formats': formats, } |