X-Git-Url: https://git.llucax.com/software/subdivxget.git/blobdiff_plain/24b7c11c0eaeb895bf4c4c1b16572160aa529d9d..1da4b46744b65f0e07b55dad1d6fdc882cce8a6d:/subdivxget?ds=inline 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('''\