mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fixes empty searchStrings and empty itemList issues if they happened.
This commit is contained in:
parent
a5b72dea84
commit
235a5d0161
1 changed files with 2 additions and 2 deletions
|
@ -250,13 +250,13 @@ class GenericProvider:
|
|||
searchStrings += self._get_episode_search_strings(epObj)
|
||||
|
||||
# remove duplicate search strings
|
||||
searchStrings = [i for n, i in enumerate(searchStrings) if i not in searchStrings[n + 1:]]
|
||||
searchStrings = [i for n, i in enumerate(searchStrings) if i not in searchStrings[n + 1:]] if len(searchStrings) else []
|
||||
|
||||
for curString in sorted(searchStrings):
|
||||
itemList += self._doSearch(curString)
|
||||
|
||||
# remove duplicate items
|
||||
itemList = [i for n, i in enumerate(itemList) if i not in itemList[n + 1:]]
|
||||
itemList = [i for n, i in enumerate(itemList) if i not in itemList[n + 1:]] if len(itemList) else []
|
||||
|
||||
for item in itemList:
|
||||
|
||||
|
|
Loading…
Reference in a new issue