mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-05 19:08:02 -05:00
Fixed TypeError: list indices must be integers, not list that occured during searches
This commit is contained in:
parent
a0ef748f3b
commit
4af28657af
@ -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 New Issue
Block a user