- title = self._og_search_title(webpage)
- thumbnail = self._og_search_thumbnail(webpage)
- creator = self._html_search_regex(
- r'<span class="name">([^<>]+)</span>', webpage, 'creator')
-
- url = 'http://global.apis.naver.com/globalV/globalV/vod/%s/playinfo?' % video_id
- msgpad = '%.0f' % (time() * 1000)
- md = b64encode(
- hmac.new(self._SECRET.encode('ascii'),
- (url[:255] + msgpad).encode('ascii'), sha1).digest()
- )
- url += '&' + compat_urllib_parse.urlencode({'msgpad': msgpad, 'md': md})
- playinfo = self._download_json(url, video_id, 'Downloading video json')
+ long_video_id = self._search_regex(
+ r'vlive\.tv\.video\.ajax\.request\.handler\.init\(\s*"[0-9]+"\s*,\s*"[^"]*"\s*,\s*"([^"]+)"',
+ webpage, 'long video id')
+
+ key = self._search_regex(
+ r'vlive\.tv\.video\.ajax\.request\.handler\.init\(\s*"[0-9]+"\s*,\s*"[^"]*"\s*,\s*"[^"]+"\s*,\s*"([^"]+)"',
+ webpage, 'key')