mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
PRS-505/700: Don't have collections show as being on a memory card.
This commit is contained in:
parent
65dfbd5cb4
commit
b64b78d84b
@ -403,9 +403,8 @@ 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', '1')
|
child.setAttribute("sourceid",
|
||||||
#child.setAttribute("sourceid",
|
'0' if getattr(child, 'tagName', '').endswith('playlist') else '1')
|
||||||
# '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