Browse Source

2024-06-06
上线了新etl, 目的是解决封面下载失败的问题

取消了自动加白名单的功能

罗俊辉 10 months ago
parent
commit
d9b4ddf10c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      applications/functions/async_etl.py

+ 1 - 1
applications/functions/async_etl.py

@@ -220,7 +220,7 @@ class AsyncETL(object):
             local_video_path=file_path,
         )
         # 读取cover, 若img是html格式,则不上传
-        with open(cover_path, "wb") as f:
+        with open(cover_path, "rb") as f:
             img_data = f.read()
         if b"<html>" in img_data:
             oss_cover = None