mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-03 01:43:37 +00:00
Fixed TypeError: list indices must be integers, not list that occured during searches
This commit is contained in:
parent
a0ef748f3b
commit
4af28657af
1 changed files with 3 additions and 3 deletions
|
@ -261,10 +261,10 @@ class GenericProvider:
|
|||
# search cache for episode result
|
||||
cacheResult = self.cache.searchCache(epObj, manualSearch)
|
||||
if cacheResult:
|
||||
if epObj not in results:
|
||||
results = [cacheResult]
|
||||
if epObj.episode not in results:
|
||||
results[epObj.episode] = [result]
|
||||
else:
|
||||
results.append(cacheResult)
|
||||
results[epObj.episode].append(result)
|
||||
|
||||
# found result, search next episode
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue