refactor indexer search: streamline result evaluation by using raw torrent list

This commit is contained in:
maxid
2025-12-28 23:41:06 +01:00
parent 8c380da3b4
commit 7ea1984d6c

View File

@@ -238,16 +238,8 @@ class MovieService:
else:
torrents = self.indexer_service.search_movie(movie=movie)
results: list[IndexerQueryResult] = []
for torrent in torrents:
if (
movie.name.lower() in torrent.title.lower()
and str(movie.year) in torrent.title
):
results.append(torrent)
return evaluate_indexer_query_results(
is_tv=False, query_results=results, media=movie
is_tv=False, query_results=torrents, media=movie
)
def get_all_movies(self) -> list[Movie]: