mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Beta 5
This commit is contained in:
parent
35a121280b
commit
b45a202c87
@ -2,7 +2,7 @@ __license__ = 'GPL v3'
|
|||||||
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
|
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
|
||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
__appname__ = 'calibre'
|
__appname__ = 'calibre'
|
||||||
__version__ = '0.6.0b4'
|
__version__ = '0.6.0b5'
|
||||||
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
@ -403,8 +403,9 @@ def fix_ids(main, carda, cardb):
|
|||||||
for child in db.root_element.childNodes:
|
for child in db.root_element.childNodes:
|
||||||
if child.nodeType == child.ELEMENT_NODE and child.hasAttribute('id'):
|
if child.nodeType == child.ELEMENT_NODE and child.hasAttribute('id'):
|
||||||
id_map[child.getAttribute('id')] = str(cid)
|
id_map[child.getAttribute('id')] = str(cid)
|
||||||
child.setAttribute("sourceid",
|
child.setAttribute('sourceid', '1')
|
||||||
'0' if getattr(child, 'tagName', '').endswith('playlist') else '1')
|
#child.setAttribute("sourceid",
|
||||||
|
# '0' if getattr(child, 'tagName', '').endswith('playlist') else '1')
|
||||||
child.setAttribute('id', str(cid))
|
child.setAttribute('id', str(cid))
|
||||||
cid += 1
|
cid += 1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user