aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj <j@mailb.org>2015-12-15 21:37:47 +0100
committerSergey M․ <dstftw@gmail.com>2016-01-01 01:58:49 +0600
commit0416006a3051b15e4bebbb096960ca4fb8ffd0a9 (patch)
treef38ee0d207edd4aa86b8645ced47901ad86efae1
parent91e274546c4492dfa8f216f311356f641859a7cc (diff)
downloadyoutube-dl-0416006a3051b15e4bebbb096960ca4fb8ffd0a9.tar.xz
Fix einthusan parser
-rw-r--r--youtube_dl/extractor/einthusan.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/einthusan.py b/youtube_dl/extractor/einthusan.py
index 5dfea0d39..bc6def65e 100644
--- a/youtube_dl/extractor/einthusan.py
+++ b/youtube_dl/extractor/einthusan.py
@@ -41,9 +41,12 @@ class EinthusanIE(InfoExtractor):
video_title = self._html_search_regex(
r'<h1><a class="movie-title".*?>(.*?)</a></h1>', webpage, 'title')
- video_url = self._html_search_regex(
- r'''(?s)jwplayer\("mediaplayer"\)\.setup\({.*?'file': '([^']+)'.*?}\);''',
- webpage, 'video url')
+ movieid = self._html_search_regex(
+ r'data-movieid="(.*?)"', webpage, 'movieid')
+
+ location = 'Washington'
+ geturl = 'http://cdn.einthusan.com/geturl/%s/hd/%s' % (movieid, location)
+ video_url = self._download_webpage(geturl, video_id)
description = self._html_search_meta('description', webpage)
thumbnail = self._html_search_regex(