youtube-dl

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

commit c659022b5cabebaba3275df2d0f4ae97b468eac8
parent 8ca2e93e1ab3485946df19d56a87e56699b2a712
Author: Sergey M․ <dstftw@gmail.com>
Date:   Wed, 23 Sep 2015 01:48:13 +0600

[9gag] Modernize

Diffstat:
Myoutube_dl/extractor/ninegag.py | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

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