mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-01 15:40:15 +00:00
Fix einthusan parser
This commit is contained in:
parent
7f9134fb2d
commit
a0d7ede350
@ -41,9 +41,12 @@ def _real_extract(self, url):
|
|||||||
video_title = self._html_search_regex(
|
video_title = self._html_search_regex(
|
||||||
r'<h1><a class="movie-title".*?>(.*?)</a></h1>', webpage, 'title')
|
r'<h1><a class="movie-title".*?>(.*?)</a></h1>', webpage, 'title')
|
||||||
|
|
||||||
video_url = self._html_search_regex(
|
movieid = self._html_search_regex(
|
||||||
r'''(?s)jwplayer\("mediaplayer"\)\.setup\({.*?'file': '([^']+)'.*?}\);''',
|
r'data-movieid="(.*?)"', webpage, 'movieid')
|
||||||
webpage, 'video url')
|
|
||||||
|
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)
|
description = self._html_search_meta('description', webpage)
|
||||||
thumbnail = self._html_search_regex(
|
thumbnail = self._html_search_regex(
|
||||||
|
Loading…
Reference in New Issue
Block a user