Addict
Posts: 225
Karma: 15318
Join Date: Nov 2015
Device: Kobo Glo HD
|
Kobo Utilities Book Sorting Problem
As I understand the functionality, the addin creates the shelf sort and then adds a timecode in increasing time from the highest series number, in order to "dummy" the sort order on the device. It also sets the sort to "date added".
As far as I can see the addin is indeed functioning as expected but the kobo shows the books in random order. For example (I anonymised the names):
DEBUG: 166.3 _order_series_shelves - shelf=The Anonymous Series, count=4
DEBUG: 166.3 _order_series_shelves - shelf_data: (u'The Anonymous Series',)
DEBUG: 166.3 _order_series_shelves - row: 0 The Anonymous Series file:///mnt/onboard/Author Name/Series Name, The/001-CoS, The.epub The Anonymous Series 1
DEBUG: 166.3 _order_series_shelves - series_index= 1.0
DEBUG: 166.3 _order_series_shelves - row: 1 The Anonymous Series file:///mnt/onboard/Author Name/Series Name, The/002-NS, The.epub The Anonymous Series 2
DEBUG: 166.3 _order_series_shelves - series_index= 2.0
DEBUG: 166.3 _order_series_shelves - row: 2 The Anonymous Series file:///mnt/onboard/Author Name/Series Name, The/003-RoD, The.epub The Anonymous Series 3
DEBUG: 166.3 _order_series_shelves - series_index= 3.0
DEBUG: 166.3 _order_series_shelves - row: 3 The Anonymous Series file:///mnt/onboard/Author Name/Series Name, The/004-RaE.epub The Anonymous Series 4
DEBUG: 166.3 _order_series_shelves - series_index= 4.0
DEBUG: 166.3 _order_series_shelves - shelf_dict: {(u'The Anonymous Series', 2.0, u'The Naked Sun'): [u'file:///mnt/onboard/Author Name/Series Name, The/002-NS, The.epub'], (u'The Anonymous Series', 1.0, u'The CoS'): [u'file:///mnt/onboard/Author Name/Series Name, The/001-CoS, The.epub'], (u'The Anonymous Series', 4.0, u'RaE'): [u'file:///mnt/onboard/Author Name/Series Name, The/004-RaE.epub'], (u'The Anonymous Series', 3.0, u'The RoD'): [u'file:///mnt/onboard/Author Name/Series Name, The/003-RoD, The.epub']}
DEBUG: 166.3 _order_series_shelves - sorted shelf_dict: [(u'The Anonymous Series', 1.0, u'The CoS'), (u'The Anonymous Series', 2.0, u'The NS'), (u'The Anonymous Series', 3.0, u'The RoD'), (u'The Anonymous Series', 4.0, u'RaE')]
DEBUG: 166.3 _order_series_shelves - lastModifiedTime= 2015-11-23 12:38:05 timeDiff: 0:00:01
DEBUG: 166.3 _order_series_shelves - sort_key: (u'The Anonymous Series', 4.0, u'RaE') update_data: (u'2015-11-23T12:38:05Z', u'The Anonymous Series', u'file:///mnt/onboard/Author Name/Series Name, The/004-RaE.epub')
DEBUG: 166.3 _order_series_shelves - sort_key: (u'The Anonymous Series', 3.0, u'The RoD') update_data: (u'2015-11-23T12:38:06Z', u'The Anonymous Series', u'file:///mnt/onboard/Author Name/Series Name, The/003-RoD, The.epub')
DEBUG: 166.3 _order_series_shelves - sort_key: (u'The Anonymous Series', 2.0, u'The NS') update_data: (u'2015-11-23T12:38:07Z', u'The Anonymous Series', u'file:///mnt/onboard/Author Name/Series Name, The/002-NS, The.epub')
DEBUG: 166.3 _order_series_shelves - sort_key: (u'The Anonymous Series', 1.0, u'The CoS') update_data: (u'2015-11-23T12:38:08Z', u'The Anonymous Series', u'file:///mnt/onboard/Author Name/Series Name, The/001-CoS, The.epub')
So you can see that the timestamp does indeed go 05,06,07,08 in its last element which is I assume how it's meant to work.
Further, if I look at the database on the device itself, there is a table called ShelfContent which shows for the relevant shelf that the date modified does indeed reflect the above data, so that the update has worked (and there are no other date fields on the table so there can't be ambiguity).
However, on the device itself, although the Sort shows correctly as "Date Added" (and I can see elsewhere in the debug log that this is being set so as requested), the books are displayed in order 2,4,1,3
Many thanks for any help.
|