[glide] Fix extraction (Closes #9141)
authorSergey M․ <dstftw@gmail.com>
Sun, 10 Apr 2016 17:45:17 +0000 (23:45 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 10 Apr 2016 17:45:17 +0000 (23:45 +0600)
youtube_dl/extractor/glide.py

index 9561ed5fbaa25404654303956a676b000da2af67..0ab23f766a995aaa594f3b72d2739df6279ac270 100644 (file)
@@ -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)