|
@@ -29,7 +29,6 @@ class CoverMethod:
|
|
|
|
|
|
@staticmethod
|
|
|
def cover_method(video_id):
|
|
|
- # video_id = "25521693"
|
|
|
video_id_status = sqlCollect.select_video_cover_method(video_id) # 判断该视频id是否处理过
|
|
|
if video_id_status:
|
|
|
AliyunLogger.logging(video_id, "重复视频ID,不做封面处理", "2001")
|
|
@@ -61,6 +60,7 @@ class CoverMethod:
|
|
|
"【 封面修改通知 】" )
|
|
|
return
|
|
|
cover_id, old_cover_url = PQ.get_pq_cover_id(video_id) # 获取原封面 和 封面ID
|
|
|
+
|
|
|
if cover_id == None:
|
|
|
AliyunLogger.logging( video_id, "获取视频原封面和封面ID失败", "3002", cover_all_data, old_cover_url, highest_cover_url)
|
|
|
insert_pq_data( [video_id] )
|
|
@@ -92,7 +92,7 @@ class CoverMethod:
|
|
|
Feishu.finish_bot( text,
|
|
|
"https://open.feishu.cn/open-apis/bot/v2/hook/63745308-c53e-4030-90b9-77383b057252",
|
|
|
"【 封面修改通知 】" )
|
|
|
- sqlCollect.insert_video_cover_method(video_id, cover_id, old_cover_url, cover_all_data, highest_cover_url)
|
|
|
+ sqlCollect.insert_video_cover_method(video_id, cover_id, old_cover_url, highest_cover_url)
|
|
|
return
|
|
|
else:
|
|
|
text = (
|
|
@@ -121,4 +121,4 @@ class CoverMethod:
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
- CoverMethod.cover_method()
|
|
|
+ CoverMethod.cover_method("")
|