1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[glide] Fix extraction (Closes #9141)

This commit is contained in:
Sergey M․ 2016-04-10 23:45:17 +06:00
parent 7ebc36900d
commit 4a121d29bb
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -23,8 +23,9 @@ class GlideIE(InfoExtractor):
webpage = self._download_webpage(url, video_id) webpage = self._download_webpage(url, video_id)
title = self._html_search_regex( title = self._html_search_regex(
r'<title>(.*?)</title>', webpage, 'title') r'<title>(.*?)</title>', webpage, 'title')
video_url = self.http_scheme() + self._search_regex( video_url = self._proto_relative_url(self._search_regex(
r'<source src="(.*?)" type="video/mp4">', webpage, 'video URL') r'<source[^>]+src=(["\'])(?P<url>.+?)\1',
webpage, 'video URL', group='url'), self.http_scheme())
thumbnail_url = self._search_regex( thumbnail_url = self._search_regex(
r'<img id="video-thumbnail" src="(.*?)"', r'<img id="video-thumbnail" src="(.*?)"',
webpage, 'thumbnail url', fatal=False) webpage, 'thumbnail url', fatal=False)