mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:53:29 +02:00
Fix #2540 (Internal collections showing as on memory stick (MS))
This commit is contained in:
parent
03fd7f164e
commit
8e64f31eed
1 changed files with 2 additions and 1 deletions
|
|
@ -403,7 +403,8 @@ def regen_ids(db):
|
|||
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", '1')
|
||||
child.setAttribute("sourceid",
|
||||
'0' if getattr(child, 'tagName', '').endswith('playlist') else '1')
|
||||
child.setAttribute('id', str(cid))
|
||||
cid += 1
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue