py2.6 fix

pull/1/head
DiMartinoXBMC 2015-07-20 19:32:00 +03:00
parent 472635beab
commit f026b91719
1 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ class PageParser:
results.append(origResult) results.append(origResult)
else: else:
results.append(result) results.append(result)
results.extend(resultsMap.viewvalues()) results.extend(resultsMap.values())
if mediaAltName: if mediaAltName:
moreResults = self.queryKinoPoisk(mediaAltName, mediaYear) moreResults = self.queryKinoPoisk(mediaAltName, mediaYear)
@ -124,7 +124,7 @@ class PageParser:
results.append(origResult) results.append(origResult)
else: else:
results.append(result) results.append(result)
results.extend(resultsMap.viewvalues()) results.extend(resultsMap.values())
# Sort all results based on their score. # Sort all results based on their score.
results.sort(key=operator.itemgetter(3)) results.sort(key=operator.itemgetter(3))