mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 14:56:01 +01:00
PRS-505/700: Don't have collections show as being on a memory card.
This commit is contained in:
parent
65dfbd5cb4
commit
b64b78d84b
1 changed files with 2 additions and 3 deletions
|
|
@ -403,9 +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("sourceid",
|
||||
'0' if getattr(child, 'tagName', '').endswith('playlist') else '1')
|
||||
child.setAttribute('id', str(cid))
|
||||
cid += 1
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue