Change is not to is None

This commit is contained in:
Markus Nyman 2023-01-17 02:09:46 +02:00
parent 620a491ac7
commit d553cec1d3
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ class Processor(ABC):
time.sleep(delay)
trakt_item = self._search_trakt(tv_time_item)
if not trakt_item:
if trakt_item is None:
break
self._process(tv_time_item, trakt_item, progress)

View file

@ -186,7 +186,7 @@ class Searcher(ABC):
first_match = query_result[0]
first_match_selected_index = int(first_match.get("UserSelectedIndex"))
skip_show = first_match.get("Skip")
if not skip_show:
if skip_show is None:
return True, self.items_with_same_name[first_match_selected_index]
else:
return True, None