youtube-dl

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

commit 5600e214c3b63e3e2a0862bea230026c02073d7a
parent 6400f8ec0f20011a7e39da62e0a3e55e0fd2759a
Author: Sergey M․ <dstftw@gmail.com>
Date:   Wed, 23 Sep 2015 01:44:38 +0600

[9gag] Make post view regex more robust

Diffstat:
Myoutube_dl/extractor/ninegag.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/ninegag.py b/youtube_dl/extractor/ninegag.py @@ -59,7 +59,8 @@ class NineGagIE(InfoExtractor): webpage = self._download_webpage(url, display_id) post_view = json.loads(self._html_search_regex( - r'var postView = new app\.PostView\({\s*post:\s*({.+?}),\s*posts:\s*prefetchedCurrentPost', webpage, 'post view')) + r'var\s+postView\s*=\s*new\s+app\.PostView\({\s*post:\s*({.+?})\s*,\s*posts:\s*prefetchedCurrentPost', + webpage, 'post view')) ie_key = None source_url = post_view.get('sourceUrl')