aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-04-24 19:52:34 +0700
committerSergey M․ <dstftw@gmail.com>2014-04-24 19:52:34 +0700
commita55c8b7aac89712943337c0c538a6cc3b94b4bad (patch)
tree0fd6602de4df39eaff989be1cbda261bd5be2cc4 /youtube_dl/extractor
parenta980bc4324094e6869e05b8ddf22c7d4d87088cf (diff)
[9gag] Fix post view regex
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/ninegag.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/ninegag.py b/youtube_dl/extractor/ninegag.py
index ee3d13403..c2e7b67c7 100644
--- a/youtube_dl/extractor/ninegag.py
+++ b/youtube_dl/extractor/ninegag.py
@@ -47,7 +47,7 @@ class NineGagIE(InfoExtractor):
webpage = self._download_webpage(url, display_id)
post_view = json.loads(self._html_search_regex(
- r'var postView = new app\.PostView\({ post: ({.+?}),', webpage, 'post view'))
+ r'var postView = new app\.PostView\({\s*post:\s*({.+?}),', webpage, 'post view'))
youtube_id = post_view['videoExternalId']
title = post_view['title']