- title = self._search_regex(
- r'(?<=\"name\": ")(?P<title>.*?)(?=\"\,)', webpage, r'Filename')
- duration = int(self._search_regex(
- r'(?<=\"duration\"\: )(?P<duration>.*?)(?=,)', webpage, r'Duration'))
- formats_raw = self._search_regex(
- r'(?<=\"mp4\":)(.*?)(}])', webpage, r'formats') + '}]'
- formats_json = json.loads(formats_raw)
+
+ video_list_json = self._search_regex(r'var videoListJSON = ({.*?});',
+ webpage, 'video list', flags=re.DOTALL)
+ video_list = json.loads(video_list_json)
+ info = video_list['clips'][0]