This commit is contained in:
Kovid Goyal 2009-06-11 12:28:09 -07:00
parent 35a121280b
commit b45a202c87
2 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,7 @@ __license__ = 'GPL v3'
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
__docformat__ = 'restructuredtext en'
__appname__ = 'calibre'
__version__ = '0.6.0b4'
__version__ = '0.6.0b5'
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
import re

View File

@ -403,8 +403,9 @@ def fix_ids(main, carda, cardb):
for child in db.root_element.childNodes:
if child.nodeType == child.ELEMENT_NODE and child.hasAttribute('id'):
id_map[child.getAttribute('id')] = str(cid)
child.setAttribute("sourceid",
'0' if getattr(child, 'tagName', '').endswith('playlist') else '1')
child.setAttribute('sourceid', '1')
#child.setAttribute("sourceid",
# '0' if getattr(child, 'tagName', '').endswith('playlist') else '1')
child.setAttribute('id', str(cid))
cid += 1