aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-04-21 07:59:29 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-04-21 07:59:29 +0200
commite51880fd32c2087885b203f7dffd48c01b68d99a (patch)
tree3fe70db0da8f074341aa9866dcfb893349eba5af /youtube_dl/extractor
parent88ce273da4d6a870903d2551d1e1451c08febb01 (diff)
[cnet] Correct JSON capturing
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/cnet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/cnet.py b/youtube_dl/extractor/cnet.py
index f5ab443d2..a94f42571 100644
--- 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']