projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88ce273
)
[cnet] Correct JSON capturing
author
Philipp Hagemeister
<phihag@phihag.de>
Mon, 21 Apr 2014 05:59:29 +0000
(07:59 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Mon, 21 Apr 2014 05:59:29 +0000
(07:59 +0200)
youtube_dl/extractor/cnet.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/cnet.py
b/youtube_dl/extractor/cnet.py
index f5ab443d2d06fbdf027b7a58655497d1406fd321..a94f42571746f21cc70ba2527e661952caca1c6f 100644
(file)
--- a/
youtube_dl/extractor/cnet.py
+++ b/
youtube_dl/extractor/cnet.py
@@
-33,7
+33,7
@@
class CNETIE(InfoExtractor):
webpage = self._download_webpage(url, display_id)
data_json = self._html_search_regex(
- r"<div class=\"cnetVideoPlayer\"
data-cnet-video-options='([^']+)'",
+ r"<div class=\"cnetVideoPlayer\"
\s+.*?
data-cnet-video-options='([^']+)'",
webpage, 'data json')
data = json.loads(data_json)
vdata = data['video']