mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
2bdf7f7508
commit
4c7e194a92
@ -715,7 +715,7 @@ class OPF(object): # {{{
|
||||
ids = {i.get('id', None) for i in self.itermanifest()}
|
||||
manifest_id = 'id1'
|
||||
c = 1
|
||||
while manifest_id not in ids:
|
||||
while manifest_id in ids:
|
||||
c += 1
|
||||
manifest_id = 'id%d'%c
|
||||
if not media_type:
|
||||
|
Loading…
x
Reference in New Issue
Block a user