projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[swfinterp] Use helper function struct_unpack for old Python 2.x releases (#3270)
[youtube-dl]
/
youtube_dl
/
extractor
/
cnet.py
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(
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']
webpage, 'data json')
data = json.loads(data_json)
vdata = data['video']