Fix einthusan parser

pull/8090/head
j 2015-12-15 21:37:47 +01:00 zatwierdzone przez Sergey M․
rodzic 7f9134fb2d
commit a0d7ede350
1 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -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(