Fixed TypeError: list indices must be integers, not list that occured during searches

This commit is contained in:
echel0n 2014-09-06 16:55:39 -07:00
parent a0ef748f3b
commit 4af28657af

View file

@ -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