Browse Source

[glide] Fix extraction (Closes #9141)

totalwebcasting
Sergey M․ 9 years ago
parent
commit
4a121d29bb
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      youtube_dl/extractor/glide.py

+ 3
- 2
youtube_dl/extractor/glide.py View 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)


Loading…
Cancel
Save