logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: e51880fd32c2087885b203f7dffd48c01b68d99a
parent 88ce273da4d6a870903d2551d1e1451c08febb01
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Mon, 21 Apr 2014 07:59:29 +0200

[cnet] Correct JSON capturing

Diffstat:

Myoutube_dl/extractor/cnet.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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']