projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a980bc4
)
[9gag] Fix post view regex
author
Sergey M․
<dstftw@gmail.com>
Thu, 24 Apr 2014 12:52:34 +0000
(19:52 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 24 Apr 2014 12:52:34 +0000
(19:52 +0700)
youtube_dl/extractor/ninegag.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ninegag.py
b/youtube_dl/extractor/ninegag.py
index ee3d1340373be3e5aea053b9bbf77087435da3fd..c2e7b67c7e5334c4f906c6a93387d18170a03c26 100644
(file)
--- 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']