aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/gameone.py
diff options
context:
space:
mode:
authorTobias Bell <tobias.bell@gmail.com>2014-05-17 18:35:11 +0200
committerTobias Bell <tobias.bell@gmail.com>2014-05-17 18:35:11 +0200
commita231ce87b56d85354f66d4a9b26763bc73ca86c1 (patch)
treeb61ef07b5cfb37c145cb987676f8541abde7aca0 /youtube_dl/extractor/gameone.py
parenta84d20fc14eb70310af85da385c879c365fd7897 (diff)
downloadyoutube-dl-a231ce87b56d85354f66d4a9b26763bc73ca86c1.zip
youtube-dl-a231ce87b56d85354f66d4a9b26763bc73ca86c1.tar.gz
youtube-dl-a231ce87b56d85354f66d4a9b26763bc73ca86c1.tar.bz2
[gameone] Added extraction of age_limit
Diffstat (limited to 'youtube_dl/extractor/gameone.py')
-rw-r--r--youtube_dl/extractor/gameone.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/gameone.py b/youtube_dl/extractor/gameone.py
index aa02343..3b38708 100644
--- a/youtube_dl/extractor/gameone.py
+++ b/youtube_dl/extractor/gameone.py
@@ -27,6 +27,7 @@ class GameOneIE(InfoExtractor):
'duration': 1238,
'thumbnail': 'http://s3.gameone.de/gameone/assets/video_metas/teaser_images/000/643/636/big/640x360.jpg',
'description': 'FIFA-Pressepokal 2014, Star Citizen, Kingdom Come: Deliverance, Project Cars, Schöner Trants Nerdquiz Folge 2 Runde 1',
+ 'age_limit': 16
}
}
@@ -37,6 +38,7 @@ class GameOneIE(InfoExtractor):
webpage = self._download_webpage(url, video_id)
og_video = self._og_search_video_url(webpage, secure=False)
description = self._html_search_meta('description', webpage)
+ age_limit = int(self._search_regex(r'age=(\d+)', self._html_search_meta('age-de-meta-label', webpage), 'age_limit', '0'))
mrss_url = self._search_regex(r'mrss=([^&]+)', og_video, 'mrss')
mrss = self._download_xml(mrss_url, video_id, 'Downloading mrss')
@@ -65,4 +67,5 @@ class GameOneIE(InfoExtractor):
'duration': duration,
'formats': formats,
'description': description,
+ 'age_limit': age_limit,
}