mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-03 18:03: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
|
# search cache for episode result
|
||||||
cacheResult = self.cache.searchCache(epObj, manualSearch)
|
cacheResult = self.cache.searchCache(epObj, manualSearch)
|
||||||
if cacheResult:
|
if cacheResult:
|
||||||
if epObj not in results:
|
if epObj.episode not in results:
|
||||||
results = [cacheResult]
|
results[epObj.episode] = [result]
|
||||||
else:
|
else:
|
||||||
results.append(cacheResult)
|
results[epObj.episode].append(result)
|
||||||
|
|
||||||
# found result, search next episode
|
# found result, search next episode
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue