ソースを参照

修复云存分表问题

peng 2 年 前
コミット
b3b387a483
1 ファイル変更1 行追加1 行削除
  1. 1 1
      Controller/CloudVod.py

+ 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)