mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-09 02:13:03 +08:00
[Youtuner] Updating url extractor regex
This commit is contained in:
parent
17093c60ed
commit
df2a7d6144
@ -24,7 +24,7 @@ class YoutunerIE(InfoExtractor):
|
|||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
thumbnail = "{0.scheme}://{0.netloc}/{1}".format(compat_urlparse.urlsplit(url), self._search_regex(r"<hgroup[^>]*>[^<]+<div[^>]+style=\"[^']+'([^']+)'", webpage, 'thumbnail'))
|
thumbnail = "{0.scheme}://{0.netloc}/{1}".format(compat_urlparse.urlsplit(url), self._search_regex(r"<hgroup[^>]*>[^<]+<div[^>]+style=\"[^']+'([^']+)'", webpage, 'thumbnail'))
|
||||||
title = self._html_search_regex(r'<h1>(.+?)</h1>', webpage, 'title')
|
title = self._html_search_regex(r'<h1>(.+?)</h1>', webpage, 'title')
|
||||||
url = self._html_search_regex(r'<a[^>]+href=\"([^>]*)\"[^>]*>Baixar', webpage, 'url')
|
url = self._html_search_regex(r'<audio[^>]*>[^<]+<source[^>]+src=\"([^\"]+)\"', webpage, 'url')
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': title,
|
'title': title,
|
||||||
|
Loading…
Reference in New Issue
Block a user