mirror of
https://github.com/SinTan1729/TvTimeToTrakt.git
synced 2025-04-19 17:40:01 -05:00
Fix case where nothing is found
This commit is contained in:
parent
6e665c50be
commit
eba70949eb
1 changed files with 2 additions and 2 deletions
|
@ -156,6 +156,8 @@ class Searcher(ABC):
|
||||||
single_result = self._check_single_result()
|
single_result = self._check_single_result()
|
||||||
if single_result:
|
if single_result:
|
||||||
return single_result
|
return single_result
|
||||||
|
elif len(self.items_with_same_name) < 1:
|
||||||
|
return None
|
||||||
|
|
||||||
# If the search contains multiple results, then we need to confirm with the user which show
|
# If the search contains multiple results, then we need to confirm with the user which show
|
||||||
# the script should use, or access the local database to see if the user has already provided
|
# the script should use, or access the local database to see if the user has already provided
|
||||||
|
@ -238,8 +240,6 @@ class Searcher(ABC):
|
||||||
return complete_match_names[0]
|
return complete_match_names[0]
|
||||||
elif len(self.items_with_same_name) == 1:
|
elif len(self.items_with_same_name) == 1:
|
||||||
return self.items_with_same_name[0]
|
return self.items_with_same_name[0]
|
||||||
elif len(self.items_with_same_name) < 1:
|
|
||||||
return None
|
|
||||||
|
|
||||||
|
|
||||||
class TVShowSearcher(Searcher):
|
class TVShowSearcher(Searcher):
|
||||||
|
|
Loading…
Reference in a new issue