From 8521a4b6989d1c06a35c73617753d2a39dee76c8 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Wed, 18 Aug 2010 10:56:40 +0100 Subject: [PATCH] Fix #6537 - series order on sony being lost --- src/calibre/devices/usbms/books.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/usbms/books.py b/src/calibre/devices/usbms/books.py index cdba980642..2b304da27f 100644 --- a/src/calibre/devices/usbms/books.py +++ b/src/calibre/devices/usbms/books.py @@ -181,7 +181,7 @@ class CollectionsBookList(BookList): if lpath not in collections_lpaths[category]: collections_lpaths[category].add(lpath) collections[category].append(book) - if attr == 'series': + if attr == 'series' or getattr(book, 'series', None) == category: series_categories.add(category) # Sort collections for category, books in collections.items():