Ver código fonte

查询云存列表不返回标签组

zhangdongming 1 ano atrás
pai
commit
2e96d108cb
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      Controller/CloudStorage.py

+ 4 - 4
Controller/CloudStorage.py

@@ -568,11 +568,11 @@ class CloudStorageView(View):
                       'uid={uid}&channel={channel}&time={time}&sign=tktktktk'. \
                 format(server_domain=SERVER_DOMAIN_SSL, uid=uid_token, channel=vod['channel'], time=vod['start_time'])
             ts_num = int(vod['fg']) & 0xf
-            dict_item = [item for item in tag_type_list if item['vod_hls_id'] == vod['id']]
+            # dict_item = [item for item in tag_type_list if item['vod_hls_id'] == vod['id']]
             types = []
-            if dict_item:
-                tag_qs = VodHlsTagType.objects.filter(tag_id=dict_item[0]['id']).values('type')
-                types = [val['type'] for val in tag_qs]
+            # if dict_item:
+            #     tag_qs = VodHlsTagType.objects.filter(tag_id=dict_item[0]['id']).values('type')
+            #     types = [val['type'] for val in tag_qs]
 
             vod_play_list.append({
                 'start_time': vod['start_time'],