|
@@ -255,7 +255,7 @@ class CloudStorageView(View):
|
|
|
|
|
|
def do_sign_play_m3u8(self, request_dict, response):
|
|
|
uid = request_dict.get('uid', None)
|
|
|
- uid = jwt.decode(uid, OAUTH_ACCESS_TOKEN_SECRET, algorithms='HS256')
|
|
|
+ uid = jwt.decode(uid, OAUTH_ACCESS_TOKEN_SECRET, algorithms='HS256').get('uid', '')
|
|
|
channel = request_dict.get('channel', None)
|
|
|
storeTime = request_dict.get('time', None)
|
|
|
now_time = int(time.time())
|
|
@@ -469,7 +469,7 @@ class CloudStorageView(View):
|
|
|
)
|
|
|
vod_url = '{server_domain}/cloudstorage/signplaym3u8?' \
|
|
|
'uid={uid}&channel={channel}&time={time}&sign=tktktktk'. \
|
|
|
- format(server_domain=SERVER_DOMAIN, uid=TokenObject().encryption(uid), channel=channel, time=vod['time'])
|
|
|
+ format(server_domain=SERVER_DOMAIN, uid=TokenObject().encryption(data={'uid': uid}), channel=channel, time=vod['time'])
|
|
|
ts_num = int(vod['fg']) & 0xf
|
|
|
vod_play_list.append({
|
|
|
'name': vod['time'],
|