0
0
Fork 0

[cnet] Correct JSON capturing

main
Philipp Hagemeister 2014-04-21 07:59:29 +02:00
parent 88ce273da4
commit e51880fd32
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class CNETIE(InfoExtractor):
webpage = self._download_webpage(url, display_id) webpage = self._download_webpage(url, display_id)
data_json = self._html_search_regex( 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') webpage, 'data json')
data = json.loads(data_json) data = json.loads(data_json)
vdata = data['video'] vdata = data['video']