youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 9b77f951c76cc4db41266100a4ed1ca1a2acdd4e
parent a25f2f990ab7a02902059daeea42d492f9d4f205
Author: Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Date:   Sun, 23 Feb 2014 12:28:44 +0100

[breakcom] Fix error when calling _search_regex

I passed `’webpage’` instead of the variable `webpage`.

Diffstat:
Myoutube_dl/extractor/breakcom.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/breakcom.py b/youtube_dl/extractor/breakcom.py @@ -24,7 +24,7 @@ class BreakIE(InfoExtractor): embed_url = 'http://www.break.com/embed/%s' % video_id webpage = self._download_webpage(embed_url, video_id) info_json = self._search_regex(r'var embedVars = ({.*})\s*?</script>', - 'webpage', 'info json', flags=re.DOTALL) + webpage, 'info json', flags=re.DOTALL) info = json.loads(info_json) video_url = info['videoUri'] m_youtube = re.search(r'(https?://www\.youtube\.com/watch\?v=.*)', video_url)