From a262d5da79d4140fa866f885481ffcad2c33bb93 Mon Sep 17 00:00:00 2001 From: Dylan Garrett Date: Mon, 7 Jun 2021 07:58:48 -0700 Subject: Fix sort --- lib/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.py b/lib/util.py index 4a884af..4693ef1 100644 --- a/lib/util.py +++ b/lib/util.py @@ -119,7 +119,7 @@ def generate_rss(base_url, book, books, static=False): track_list.append(track) else: # we have populated and unique track values, use those - key = lambda x: books[book]['files'][x]['track'] + key = lambda x: int(books[book]['files'][x]['track']) # populate XML attribute values required by Apple podcasts for idx, f in enumerate(sorted(books[book]['files'], key=key)): -- cgit v1.2.3-54-g00ecf