diff options
-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 a2f982d..1eb6af6 100644 --- a/lib/util.py +++ b/lib/util.py @@ -121,7 +121,7 @@ def generate_rss(request, books): 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)): |