fix 本地媒体检查潜在的额外扫盘问题

This commit is contained in:
景大侠
2025-07-05 19:31:16 +08:00
parent 25a481df12
commit bc5e682308
2 changed files with 20 additions and 5 deletions

View File

@@ -434,14 +434,15 @@ class SubscribeChain(ChainBase):
else:
self.messagehelper.put('没有找到订阅!', title="订阅搜索", role="system")
logger.debug(f"search Lock released at {datetime.now()}")
finally:
subscribes.clear()
del subscribes
# 如果不是大内存模式,进行垃圾回收
if not settings.BIG_MEMORY_MODE:
gc.collect()
logger.debug(f"search Lock released at {datetime.now()}")
# 如果不是大内存模式,进行垃圾回收
if not settings.BIG_MEMORY_MODE:
gc.collect()
def update_subscribe_priority(self, subscribe: Subscribe, meta: MetaBase,
mediainfo: MediaInfo, downloads: Optional[List[Context]]):