mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
673e84d4be
commit
525216d957
@ -70,8 +70,10 @@ def normalize_languages(opf_languages, mi_languages):
|
||||
|
||||
def ensure_unique(template, existing):
|
||||
b, e = template.rpartition('.')[::2]
|
||||
if e:
|
||||
if b and e:
|
||||
e = '.' + e
|
||||
else:
|
||||
b, e = template, ''
|
||||
q = template
|
||||
c = 0
|
||||
while q in existing:
|
||||
|
Loading…
x
Reference in New Issue
Block a user