Skip to content

Commit

Permalink
Merge pull request #73 from pymedusa/fix_sort_again
Browse files Browse the repository at this point in the history
[Manual Search] Fix sort again
  • Loading branch information
fernandog committed Mar 2, 2016
2 parents ba410a8 + 9813ae1 commit c4e7a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sickbeard/manual_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def get_provider_cache_results(indexer, show_all_results=None, perform_search=No
time.sleep(cpu_presets[sickbeard.CPU_PRESET])
else:
# Sort the list of found items
found_items = sorted(found_items, key=lambda k: (int(k['quality']), int(k['seeders'])), reverse=True)
found_items = sorted(found_items, key=lambda k: (try_int(k['quality']), try_int(k['seeders'])), reverse=True)
# Make unknown qualities at the botton
found_items = [d for d in found_items if int(d['quality']) < 32768] + [d for d in found_items if int(d['quality']) == 32768]
provider_results['found_items'] = found_items
Expand Down

0 comments on commit c4e7a50

Please sign in to comment.