mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
get_categories(): ignore empty is_mult values
This commit is contained in:
parent
85ae7c7d4f
commit
1a90427d8d
@ -1153,6 +1153,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
|||||||
else:
|
else:
|
||||||
vals = book[dex].split(mult)
|
vals = book[dex].split(mult)
|
||||||
for val in vals:
|
for val in vals:
|
||||||
|
if not val: continue
|
||||||
try:
|
try:
|
||||||
(item_id, sort_val) = tids[cat][val] # let exceptions fly
|
(item_id, sort_val) = tids[cat][val] # let exceptions fly
|
||||||
item = tcategories[cat].get(val, None)
|
item = tcategories[cat].get(val, None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user