mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix:memory use
This commit is contained in:
@@ -238,7 +238,11 @@ class IndexerModule(_ModuleBase):
|
|||||||
cat=cat,
|
cat=cat,
|
||||||
page=page)
|
page=page)
|
||||||
|
|
||||||
return _spider.is_error, _spider.get_torrents()
|
try:
|
||||||
|
return _spider.is_error, _spider.get_torrents()
|
||||||
|
finally:
|
||||||
|
# 显式清理SiteSpider对象
|
||||||
|
del _spider
|
||||||
|
|
||||||
def refresh_torrents(self, site: dict,
|
def refresh_torrents(self, site: dict,
|
||||||
keyword: Optional[str] = None, cat: Optional[str] = None, page: Optional[int] = 0) -> Optional[List[TorrentInfo]]:
|
keyword: Optional[str] = None, cat: Optional[str] = None, page: Optional[int] = 0) -> Optional[List[TorrentInfo]]:
|
||||||
|
|||||||
Reference in New Issue
Block a user