diff --git a/douyin/core/douyin_fudai.py b/douyin/core/douyin_fudai.py index abba4cc..6afcdd0 100644 --- a/douyin/core/douyin_fudai.py +++ b/douyin/core/douyin_fudai.py @@ -562,6 +562,7 @@ class fudai_analyse: try: import path_config import os + pic_path = path_config.get_screenshot_path() if os.path.exists(pic_path): os.remove(pic_path) diff --git a/douyin/reservation/douyin_reservation_handler.py b/douyin/reservation/douyin_reservation_handler.py index 0e41d73..d775dbf 100644 --- a/douyin/reservation/douyin_reservation_handler.py +++ b/douyin/reservation/douyin_reservation_handler.py @@ -228,6 +228,7 @@ class ReservationHandler: try: import path_config import os + pic_path = path_config.get_screenshot_path() if os.path.exists(pic_path): os.remove(pic_path) diff --git a/fudai_detail_modules/fudai_detail_room_title.py b/fudai_detail_modules/fudai_detail_room_title.py index 86be297..17b8cfa 100644 --- a/fudai_detail_modules/fudai_detail_room_title.py +++ b/fudai_detail_modules/fudai_detail_room_title.py @@ -218,6 +218,7 @@ def read_live_room_title_core( if os.path.exists(pic_path) and os.path.getsize(pic_path) >= 1024: # 检查文件修改时间,避免复用过期的截图(超过30秒的认为过期) import time + file_mtime = os.path.getmtime(pic_path) current_time = time.time() if current_time - file_mtime > 30: