Browse Source

[gorillavid] Build correct URL

totalwebcasting
Sergey M․ 9 years ago
parent
commit
e213c98df1
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/gorillavid.py

+ 2
- 1
youtube_dl/extractor/gorillavid.py View File

@ -73,7 +73,8 @@ class GorillaVidIE(InfoExtractor):
mobj = re.match(self._VALID_URL, url) mobj = re.match(self._VALID_URL, url)
video_id = mobj.group('id') video_id = mobj.group('id')
webpage = self._download_webpage('http://%s/%s' % (mobj.group('host'), video_id), video_id)
url = 'http://%s/%s' % (mobj.group('host'), video_id)
webpage = self._download_webpage(url, video_id)
if re.search(self._FILE_NOT_FOUND_REGEX, webpage) is not None: if re.search(self._FILE_NOT_FOUND_REGEX, webpage) is not None:
raise ExtractorError('Video %s does not exist' % video_id, expected=True) raise ExtractorError('Video %s does not exist' % video_id, expected=True)


Loading…
Cancel
Save