Merge pull request #2005 from mano3m/develop_sorting

Regard torrents and torrent_magnet the same
This commit is contained in:
Ruud Burger
2013-08-12 01:08:05 -07:00
+1 -1
View File
@@ -195,7 +195,7 @@ class Searcher(Plugin):
download_preference = self.conf('preferred_method')
if download_preference != 'both':
sorted_results = sorted(sorted_results, key = lambda k: k['type'], reverse = (download_preference == 'torrent'))
sorted_results = sorted(sorted_results, key = lambda k: k['type'][:3], reverse = (download_preference == 'torrent'))
# Check if movie isn't deleted while searching
if not db.query(Movie).filter_by(id = movie.get('id')).first():