浏览代码

Merge branch '2024-10-12-luojunhui-cover-bug-fix' of Server/title_with_video into 2024-09-23newDbTasks

luojunhui 6 月之前
父节点
当前提交
03b695ffc8
共有 2 个文件被更改,包括 7 次插入7 次删除
  1. 3 3
      tasks/history_task.py
  2. 4 4
      tasks/newContentIdTask.py

+ 3 - 3
tasks/history_task.py

@@ -180,9 +180,9 @@ class historyContentIdTask(object):
                 "uid": video_obj['uid'],
                 "source": video_obj['platform'],
                 "kimiTitle": kimi_title,
-                "videoId": response['data']['id'],
-                "videoCover": response['data']['shareImgPath'],
-                "videoPath": response['data']['videoPath'],
+                "videoId": response['data'][0]['id'],
+                "videoCover": response['data'][0]['shareImgPath'],
+                "videoPath": response['data'][0]['videoPath'],
                 "videoOss": video_obj['video_oss_path']
             }
             L.append(obj)

+ 4 - 4
tasks/newContentIdTask.py

@@ -621,9 +621,9 @@ class NewContentIdTask(object):
                     "uid": video_obj['uid'],
                     "source": video_obj['platform'],
                     "kimiTitle": kimi_title,
-                    "videoId": response['data']['id'],
-                    "videoCover": response['data']['shareImgPath'],
-                    "videoPath": response['data']['videoPath'],
+                    "videoId": response['data'][0]['id'],
+                    "videoCover": response['data'][0]['shareImgPath'],
+                    "videoPath": response['data'][0]['videoPath'],
                     "videoOss": video_obj['video_oss_path']
                 }
                 L.append(obj)
@@ -731,7 +731,7 @@ class NewContentIdTask(object):
             if processing_flag:
                 logging(
                     code="9001",
-                    info="该 content id 正在处理中, 跳过此任务"
+                    info="该 content id 正在处理中, 跳过此任务--{}".format(content_id)
                 )
             else:
                 await self.start_process(params=params)