peng 2 жил өмнө
parent
commit
b3b387a483

+ 1 - 1
Controller/CloudVod.py

@@ -495,7 +495,7 @@ class CloudVodView(View):
             return response.json(10, '设备未购买')
         nowTime = int(time.time())
         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")
         if not vodqs.exists():
             return response.json(173)