[Vidbit] Improve regex
This commit is contained in:
parent
b086dc8263
commit
e09c9aabb0
@ -26,7 +26,7 @@ class VidbitIE(InfoExtractor):
|
|||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': self._html_search_regex(r'<h1>(.+)</h1>', webpage, 'title'),
|
'title': self._html_search_regex(r'<h1>(.+)</h1>', webpage, 'title'),
|
||||||
'url': self._BASE_URL % self._html_search_regex(r'file:\s*["\'](.+)["\']', webpage, 'video URL'),
|
'url': self._BASE_URL % self._html_search_regex(r'file:\s*(["\'])((?:(?!\1).)+)\1', webpage, 'video URL', group=2),
|
||||||
'thumbnail': self._BASE_URL % self._html_search_regex(r'image:\s*["\'](.*)["\']', webpage, 'thumbnail', None),
|
'thumbnail': self._BASE_URL % self._html_search_regex(r'image:\s*(["\'])((?:(?!\1).)+)\1', webpage, 'thumbnail', None, group=2),
|
||||||
'desription': self._html_search_regex(r'description:\s*["\'](.*)["\']', webpage, 'thumbnail', None),
|
'description': self._html_search_regex(r'description:(["\'])((?:(?!\1).)+)\1', webpage, 'description', None, group=2),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user