|
@@ -495,7 +495,7 @@ class CloudVodView(View):
|
|
return response.json(10, '设备未购买')
|
|
return response.json(10, '设备未购买')
|
|
nowTime = int(time.time())
|
|
nowTime = int(time.time())
|
|
split_vod_hls_obj = SplitVodHlsObject()
|
|
split_vod_hls_obj = SplitVodHlsObject()
|
|
- vodqs = split_vod_hls_obj.render(uid=uid, channel=channel, start_time=(startTime, endTime),
|
|
|
|
|
|
+ vodqs = split_vod_hls_obj.get_vod_hls_data(uid=uid, channel=channel, start_time__range=(startTime, endTime),
|
|
end_time__gte=nowTime).values("start_time", "sec", "bucket_id")
|
|
end_time__gte=nowTime).values("start_time", "sec", "bucket_id")
|
|
if not vodqs.exists():
|
|
if not vodqs.exists():
|
|
return response.json(173)
|
|
return response.json(173)
|