SONY driver: Fix series order being lost when metadata management is set to manual

This commit is contained in:
Kovid Goyal 2010-08-18 10:11:52 -06:00
parent 39c820043d
commit 1c8d6e7c73

View File

@ -181,7 +181,9 @@ class CollectionsBookList(BookList):
if lpath not in collections_lpaths[category]: if lpath not in collections_lpaths[category]:
collections_lpaths[category].add(lpath) collections_lpaths[category].add(lpath)
collections[category].append(book) collections[category].append(book)
if attr == 'series': if attr == 'series' or \
('series' in collection_attributes and
getattr(book, 'series', None) == category):
series_categories.add(category) series_categories.add(category)
# Sort collections # Sort collections
for category, books in collections.items(): for category, books in collections.items():