mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-22 01:23:43 +00:00
Merge pull request #358 from WebSpider/dev-search_unhashable_type
Prevent unhashable type errors
This commit is contained in:
commit
25710f28ec
1 changed files with 5 additions and 2 deletions
|
@ -250,13 +250,16 @@ class GenericProvider:
|
||||||
searchStrings += self._get_episode_search_strings(epObj)
|
searchStrings += self._get_episode_search_strings(epObj)
|
||||||
|
|
||||||
# remove duplicate search strings
|
# remove duplicate search strings
|
||||||
searchStrings = [i for n, i in enumerate(searchStrings) if i not in searchStrings[n + 1:]]
|
if len(searchString):
|
||||||
|
searchStrings = [i for n, i in enumerate(searchStrings) if i not in searchStrings[n + 1:]]
|
||||||
|
|
||||||
for curString in sorted(searchStrings):
|
for curString in sorted(searchStrings):
|
||||||
itemList += self._doSearch(curString)
|
itemList += self._doSearch(curString)
|
||||||
|
|
||||||
# remove duplicate items
|
# remove duplicate items
|
||||||
itemList = list(set(itemList))
|
if len(itemLisT):
|
||||||
|
itemList = list(set(itemList))
|
||||||
|
|
||||||
for item in itemList:
|
for item in itemList:
|
||||||
|
|
||||||
(title, url) = self._get_title_and_url(item)
|
(title, url) = self._get_title_and_url(item)
|
||||||
|
|
Loading…
Reference in a new issue