aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/ninegag.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/extractor/ninegag.py')
-rw-r--r--youtube_dl/extractor/ninegag.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/ninegag.py b/youtube_dl/extractor/ninegag.py
index d157b0d10..692cc3368 100644
--- 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')