diff --git a/app.py b/app.py index 905acea99274fee34023b3f05fb5253b59df7e48..e5e5dee5ba714580c17bce9c7e9b5dcb23953104 100644 --- a/app.py +++ b/app.py @@ -274,7 +274,7 @@ def vod(): return jsonify(data) if ac and ids: # 二级 id_list = ids.split(',') - # print(len(id_list)) + # print('app:377',len(id_list)) # print(id_list) data = cms.detailContent(pg,id_list) # print(data) diff --git a/classes/cms.py b/classes/cms.py index ab6eef56f8ad74f02b8c8056f4886e76dd38b4ff..953bb2c324bbe427be9662cc3ba3e854a0dd2956 100644 --- a/classes/cms.py +++ b/classes/cms.py @@ -398,6 +398,7 @@ class CMS: if self.filter: result['filters'] = playerConfig['filter'] result.update(video_result) + print(result) logger.info(f'{self.getName()}获取首页总耗时(包含读取缓存):{get_interval(t1)}毫秒') return result @@ -428,7 +429,7 @@ class CMS: title = pdfh(item2, p[2]) img = pd(item2, p[3]) desc = pdfh(item2, p[4]) - links = [pd(item, p5) if not self.detailUrl else pdfh(item, p5) for p5 in p[5].split('+')] + links = [pd(item2, p5) if not self.detailUrl else pdfh(item2, p5) for p5 in p[5].split('+')] link = '$'.join(links) content = '' if len(p) < 7 else pdfh(item2, p[6]) videos.append({ @@ -682,6 +683,7 @@ class CMS: obj_list = [] try: for vod_url in array: + # print(vod_url) vod_class = '' if vod_url.find('$') > -1: tmp = vod_url.split('$')