aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-04-10 23:45:17 +0600
committerSergey M․ <dstftw@gmail.com>2016-04-10 23:45:17 +0600
commit4a121d29bb0700beb19e8b6edb5d479e9fe7ac1b (patch)
tree12ef66a23d671205333e022d5be39029b24b8d45 /youtube_dl
parent7ebc36900d15888321a45f04113eeda169469004 (diff)
[glide] Fix extraction (Closes #9141)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/glide.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/glide.py b/youtube_dl/extractor/glide.py
index 9561ed5fb..0ab23f766 100644
--- a/youtube_dl/extractor/glide.py
+++ b/youtube_dl/extractor/glide.py
@@ -23,8 +23,9 @@ class GlideIE(InfoExtractor):
webpage = self._download_webpage(url, video_id)
title = self._html_search_regex(
r'<title>(.*?)</title>', webpage, 'title')
- video_url = self.http_scheme() + self._search_regex(
- r'<source src="(.*?)" type="video/mp4">', webpage, 'video URL')
+ video_url = self._proto_relative_url(self._search_regex(
+ r'<source[^>]+src=(["\'])(?P<url>.+?)\1',
+ webpage, 'video URL', group='url'), self.http_scheme())
thumbnail_url = self._search_regex(
r'<img id="video-thumbnail" src="(.*?)"',
webpage, 'thumbnail url', fatal=False)