From 630a5fee7604a20e952b9ddda2efdcc370c7874a Mon Sep 17 00:00:00 2001 From: Dariush Date: Fri, 15 Nov 2024 18:20:07 +0100 Subject: [PATCH] rename variable --- comet/utils/general.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/comet/utils/general.py b/comet/utils/general.py index c2ffd0f..3ff56b6 100644 --- a/comet/utils/general.py +++ b/comet/utils/general.py @@ -467,10 +467,10 @@ async def get_mediafusion(log_name: str, type: str, full_id: str): async def filter(torrents: list, name: str, year: int): - def title_sub_match(correct_title: str, torrent_title: str): - correct_title = correct_title.lower() + def title_sub_match(imdb_title: str, torrent_title: str): + imdb_title = imdb_title.lower() torrent_title = torrent_title.lower() - return correct_title in torrent_title or torrent_title in correct_title + return imdb_title in torrent_title or torrent_title in imdb_title results = [] for torrent in torrents: