diff --git a/backend/src/module/searcher/searcher.py b/backend/src/module/searcher/searcher.py index 1b44f4e6..1cddb23a 100644 --- a/backend/src/module/searcher/searcher.py +++ b/backend/src/module/searcher/searcher.py @@ -21,8 +21,11 @@ BangumiJSON: TypeAlias = str class SearchTorrent(RequestContent, RSSAnalyser): def search_torrents(self, rss_item: RSSItem) -> list[Torrent]: - torrents = self.get_torrents(rss_item.url) + with RequestContent() as req: + torrents = self.get_torrents(rss_item.url) return torrents + # torrents = self.get_torrents(rss_item.url) + # return torrents def analyse_keyword( self, keywords: list[str], site: str = "mikan", limit: int = 5