Quote:
Originally Posted by chaley
 This is done in the Update Metadata panel, changing Date Added? Setting it this way does work, but as you said it isn't useful for changing collection order because it is a per-book field.
This is done using "Order Series" panel? This seems not to change how a collection is sorted by Date Added or Recent. Date Added uses the date I set using Update Metadata.
|
Yes to both of those places. Digging through my memory, when Shelves/Collections were first added, the Date added sort in a collection worked on the timestamp when the book was added to the collection. At some point it stopped working altogether, or at least gave a seemingly random but consistent sort. The collection was always sorted the same way, but, I could never find the rules used. When that was "fixed", it was done by using the book date added value. Which meant the sort order for a set of books was consistent across all lists but meant there was no way to build another order.
Quote:
FWIW: I got this exception when changing Date Added in the Update Metadata panel to a date that is undefined for some books.
Spoiler:
Code:
calibre, version 5.42.0
ERROR: Unhandled exception: <b>TypeError</b>:'<' not supported between instances of 'str' and 'int'
calibre 5.42* [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (10, 0, 2) && Count Pages (1, 11, 2) && EpubSplit (3, 3, 0) && Fantastic Fiction (1, 5, 1) && Find Duplicates (1, 9, 5) && Kobo Utilities (2, 16, 0) && Modify ePub (1, 7, 3) && Open With (1, 7, 0) && Quality Check (1, 12, 0) && Reading List (1, 9, 0) && Save Composite Custom Columns (1, 1, 1) && Save Virtual Libraries To Column (2, 0, 1) && Save Virtual Libraries To Column GUI (2, 3, 0) && View Manager (1, 8, 0)
Traceback (most recent call last):
File "calibre_plugins.koboutilities.action", line 958, in update_metadata
File "calibre_plugins.koboutilities.action", line 4161, in _update_metadata
File "C:\CBH_Data\calibre.git\calibre_dev\src\calibre\__init__.py", line 407, in strftime
TypeError: '<' not supported between instances of 'str' and 'int'
|
What date are you using? I'm guessing a custom date column as I think that's the most likely to be not set. And I can see something in the handling of custom date columns that might not be sensible.