aboutsummaryrefslogtreecommitdiff
path: root/lib/util.py
diff options
context:
space:
mode:
authorDylan Garrett <dylan.garrett@gmail.com>2021-06-07 07:58:48 -0700
committerDylan Garrett <dylan.garrett@gmail.com>2021-06-07 07:58:48 -0700
commita262d5da79d4140fa866f885481ffcad2c33bb93 (patch)
treefaf85b3c4a5cd648b0d85d3ff170fccd4a471ee8 /lib/util.py
parent3d850b4d695acb4de3616eca947cfb0b7390154e (diff)
downloadroka-a262d5da79d4140fa866f885481ffcad2c33bb93.tar.gz
roka-a262d5da79d4140fa866f885481ffcad2c33bb93.zip
Fix sort
Diffstat (limited to 'lib/util.py')
-rw-r--r--lib/util.py2
1 files changed, 1 insertions, 1 deletions
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)):