Skip to content

Commit

Permalink
[wimp] Update video URL regex
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Oct 28, 2014
1 parent 03df7ba commit 632256d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/wimp.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _real_extract(self, url):
video_id = mobj.group(1)
webpage = self._download_webpage(url, video_id)
video_url = self._search_regex(
r's1\.addVariable\("file",\s*"([^"]+)"\);', webpage, 'video URL')
r"'file'\s*:\s*'([^']+)'", webpage, 'video URL')
if YoutubeIE.suitable(video_url):
self.to_screen('Found YouTube video')
return {
Expand Down

0 comments on commit 632256d

Please sign in to comment.