Update eporner.py
authorlogon84 <rubenlogon@yahoo.es>
Tue, 24 Feb 2015 17:58:32 +0000 (18:58 +0100)
committerlogon84 <rubenlogon@yahoo.es>
Tue, 24 Feb 2015 17:58:32 +0000 (18:58 +0100)
Updated to work. Old version shows an error about being unable to extract "redirect_code"

youtube_dl/extractor/eporner.py

index 4de8d4bc5c9107ddc361a8351ea4a63d3da40783..9ae28855bd40f1c76ac1efa37cc42a634ef47afe 100644 (file)
@@ -35,10 +35,7 @@ class EpornerIE(InfoExtractor):
         title = self._html_search_regex(
             r'<title>(.*?) - EPORNER', webpage, 'title')
 
-        redirect_code = self._html_search_regex(
-            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)
+        redirect_url = 'http://www.eporner.com/config5/%s/%s' % (video_id, display_id)
         player_code = self._download_webpage(
             redirect_url, display_id, note='Downloading player config')