diff options
author | Philipp Hagemeister <[email protected]> | 2014-04-21 07:59:29 +0200 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-04-21 07:59:29 +0200 |
commit | e51880fd32c2087885b203f7dffd48c01b68d99a (patch) | |
tree | 3fe70db0da8f074341aa9866dcfb893349eba5af | |
parent | 88ce273da4d6a870903d2551d1e1451c08febb01 (diff) | |
download | youtube-dl-e51880fd32c2087885b203f7dffd48c01b68d99a.tar.gz youtube-dl-e51880fd32c2087885b203f7dffd48c01b68d99a.zip |
[cnet] Correct JSON capturing
-rw-r--r-- | youtube_dl/extractor/cnet.py | 2 |
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'] |