mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
EPUB Output: Have the GUI use a UUID for package identifier when creating EPUBs
This commit is contained in:
parent
ea0ec8293b
commit
d14682525c
@ -6,7 +6,7 @@ __docformat__ = 'restructuredtext en'
|
||||
'''
|
||||
The GUI for conversion to EPUB.
|
||||
'''
|
||||
import os
|
||||
import os, uuid
|
||||
|
||||
from PyQt4.Qt import QDialog, QSpinBox, QDoubleSpinBox, QComboBox, QLineEdit, \
|
||||
QTextEdit, QCheckBox, Qt, QPixmap, QIcon, QListWidgetItem, SIGNAL
|
||||
@ -272,6 +272,7 @@ class Config(ResizableDialog, Ui_Dialog):
|
||||
if self.row is not None:
|
||||
self.db.set_metadata(self.id, mi)
|
||||
self.mi = self.db.get_metadata(self.id, index_is_id=True)
|
||||
self.mi.application_id = uuid.uuid4()
|
||||
opf = OPFCreator(os.getcwdu(), self.mi)
|
||||
self.opf_file = PersistentTemporaryFile('.opf')
|
||||
opf.render(self.opf_file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user