diff options
author | Dylan Garrett <dylan.garrett@gmail.com> | 2021-06-07 07:58:48 -0700 |
---|---|---|
committer | Dylan Garrett <dylan.garrett@gmail.com> | 2021-06-07 07:58:48 -0700 |
commit | a262d5da79d4140fa866f885481ffcad2c33bb93 (patch) | |
tree | faf85b3c4a5cd648b0d85d3ff170fccd4a471ee8 | |
parent | 3d850b4d695acb4de3616eca947cfb0b7390154e (diff) | |
download | roka-a262d5da79d4140fa866f885481ffcad2c33bb93.tar.gz roka-a262d5da79d4140fa866f885481ffcad2c33bb93.zip |
Fix sort
-rw-r--r-- | lib/util.py | 2 |
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)): |