From: Leandro Lucarella Date: Sat, 14 Jul 2012 18:08:37 +0000 (+0200) Subject: Don't sort subs inside subdivx_get_subs() X-Git-Url: https://git.llucax.com/software/subdivxget.git/commitdiff_plain/1da4b46744b65f0e07b55dad1d6fdc882cce8a6d?hp=24b7c11c0eaeb895bf4c4c1b16572160aa529d9d Don't sort subs inside subdivx_get_subs() --- diff --git a/subdivxget b/subdivxget index 954b80a..5d467ec 100755 --- a/subdivxget +++ b/subdivxget @@ -202,7 +202,7 @@ def subdivx_get_subs(query_str): subs.extend(parser.subs) page_number += 1 - return sorted(subs, key=lambda s: int(s['downloads']), reverse=True) + return subs def get_subs(query_str, filters): @@ -212,6 +212,7 @@ def get_subs(query_str, filters): subs = subdivx_get_subs(query_str) subs = filter_subtitles(subs, filters) + subs.sort(key=lambda s: int(s['downloads']), reverse=True) for sub in subs: print('''\