- time_date = _v('time_date')
- time_start = _v('time_start')
- upload_date = None
- if time_date and time_start:
- upload_date = unified_strdate(time_date + ' ' + time_start)
-
- json_url = ('https://club.laola1.tv/sp/laola1/api/v3/user/session' +
- '/premium/player/stream-access?videoId=%s&target=2' +
- '&label=laola1tv&area=%s') % (video_id, _v('area'))
- req = sanitized_Request(json_url, urlencode_postdata(
- dict((i, v) for i, v in enumerate(_v('req_liga_abos').split(',')))))
-
- token_url = self._download_json(req, video_id)['data']['stream-access'][0]
- token_doc = self._download_xml(
- token_url, video_id, note='Downloading token')
+ token_url = self._download_json(req, display_id)['data']['stream-access'][0]
+ token_doc = self._download_xml(token_url, display_id, 'Downloading token')