From 8e64f31eed20c592c7176dc05778201f56a64f71 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 5 Jun 2009 18:23:06 -0700 Subject: [PATCH] Fix #2540 (Internal collections showing as on memory stick (MS)) --- src/calibre/devices/prs505/books.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/devices/prs505/books.py b/src/calibre/devices/prs505/books.py index 528770d3c5..6e268e734a 100644 --- a/src/calibre/devices/prs505/books.py +++ b/src/calibre/devices/prs505/books.py @@ -403,7 +403,8 @@ 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", '1') + child.setAttribute("sourceid", + '0' if getattr(child, 'tagName', '').endswith('playlist') else '1') child.setAttribute('id', str(cid)) cid += 1