aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/eporner.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/extractor/eporner.py')
-rw-r--r--youtube_dl/extractor/eporner.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/youtube_dl/extractor/eporner.py b/youtube_dl/extractor/eporner.py
index 33f9ab7a9..6926fcda3 100644
--- a/youtube_dl/extractor/eporner.py
+++ b/youtube_dl/extractor/eporner.py
@@ -36,9 +36,10 @@ class EpornerIE(InfoExtractor):
r'<script type="text/javascript" src="/config5/%s/([a-f\d]+)/">' % video_id,
webpage, 'redirect_code')
redirect_url = 'http://www.eporner.com/config5/%s/%s' % (video_id, redirect_code)
- webpage2 = self._download_webpage(redirect_url, video_id)
+ player_code = self._download_webpage(
+ redirect_url, video_id, note='Downloading player config')
video_url = self._html_search_regex(
- r'file: "(.*?)",', webpage2, 'video_url')
+ r'file: "(.*?)",', player_code, 'video_url')
duration = parse_duration(self._search_regex(
r'class="mbtim">([0-9:]+)</div>', webpage, 'duration',
@@ -53,5 +54,5 @@ class EpornerIE(InfoExtractor):
'title': title,
'duration': duration,
'view_count': view_count,
- 'age_limit': 18,
+ 'age_limit': self._rta_search(webpage),
}