From 1da4b46744b65f0e07b55dad1d6fdc882cce8a6d Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sat, 14 Jul 2012 20:08:37 +0200 Subject: [PATCH 1/1] Don't sort subs inside subdivx_get_subs() --- subdivxget | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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('''\ -- 2.43.0