aboutsummaryrefslogtreecommitdiff
path: root/rebuild.py
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2020-04-20 14:48:22 -0700
committerJordan <me@jordan.im>2020-04-20 14:48:22 -0700
commitc5459f3a5ede5eb4a73c67e791d0771ef78e091b (patch)
treeaffe3b267e78908cd8df35606adaaaa191060103 /rebuild.py
parentc58cc26bab83c6c6a1192c637edfac6a7ede9276 (diff)
downloadroka-c5459f3a5ede5eb4a73c67e791d0771ef78e091b.tar.gz
roka-c5459f3a5ede5eb4a73c67e791d0771ef78e091b.zip
fallback sort by filename rather than title tag
Diffstat (limited to 'rebuild.py')
-rwxr-xr-xrebuild.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rebuild.py b/rebuild.py
index 4802272..faec616 100755
--- a/rebuild.py
+++ b/rebuild.py
@@ -69,6 +69,7 @@ def get_books(root_path):
mp3 = dict()
mp3['path'] = file_path
mp3['duration'] = tag.duration
+ mp3['filename'] = os.path.split(file_path)[1]
# attribute values must be populated and non-space
if tag.title and not tag.title.isspace():