View Single Post
Old 11-04-2021, 02:03 AM   #24
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Claude_C View Post
Here's a log after editing the metadata of a book and transferring it on the Kobo.
Going through that log, it definitely looks like books should be on collections. Specifically:

Code:
DEBUG:    0.1 KoboTouch:books - driver options= Driver:KoboTouchExtended, Options - format_map: ['kepub', 'epub', 'cbr', 'cbz', 'pdf', 'txt'], use_subdirs: True, read_metadata: True, use_author_sort: False, save_template: {author_sort}/{title} - {authors}, extra_customization: [], manage_collections: True, collections_columns: #myshelves, tags, create_collections: True, delete_empty_collections: True, ignore_collections_names: , upload_covers: False, dithered_covers: False, keep_cover_aspect: False, upload_grayscale: False, letterbox_fs_covers: False, letterbox_fs_covers_color: #000000, png_covers: False, show_archived_books: False, show_previews: False, show_recommendations: False, update_series: True, update_core_metadata: True, update_purchased_kepubs: False, update_device_metadata: True, update_subtitle: False, subtitle_template: , modify_css: False, override_kobo_replace_existing: True, support_newer_firmware: True, debugging_title: , driver_version: 3.5.4, extra_features: True, upload_encumbered: False, skip_failed: False, hyphenate: False, smarten_punctuation: False, clean_markup: False, full_page_numbers: False, disable_hyphenation: False, file_copy_dir: , hyphenate_chars: 6, hyphenate_chars_before: 3, hyphenate_chars_after: 3, hyphenate_limit_lines: 2
DEBUG:    0.1 KoboTouch:books - prefs['manage_device_metadata']= manual
The first line is the options and you are using the columns "#myshelves" and "tags" for collections. And it is creating them. The second line says the metadata management is set to "Manual management" and it will only be done when a book is sent. Which means collection management is done when a book is sent.
Code:
DEBUG:    0.5 KoboTouch:books - shelf list: ['Science Fiction', 'Littérature américaine', 'Essai', 'Québécois', 'Fantasy', 'Littérature', 'Polar', 'Littérature Française', 'Aventure', 'Historique', 'Thriller', 'ReadingList', 'Littérature étrangère', 'Fantastique', 'Nouvelles', 'Classique', 'Littérature russe']
This is the list of collections on the device.

Those lines come from the connection jobs. As the metadata management is manual, nothing else happens at this point.

Then you send a book:

Code:
DEBUG:   95.0 KoboTouch:upload_books: Processing book: Tous Mes Amis Sont Des Superhéros by Andrew Kaufman
You are using the KoboTouchExtended driver, so there are a lot of lines about the transformation to kepub.

Then we get to the section which does the collection management. This includes:

Code:
DEBUG:   95.7 KoboTouch:update_device_database_collections - category='Thriller' books=142
DEBUG:   95.7 KoboTouch:update_device_database_collections - end for category='Thriller'
DEBUG:   95.7 KoboTouch:update_device_database_collections - category='Littérature' books=209
DEBUG:   95.7     Do not know ContentID - Title="Tous Mes Amis Sont Des Superhéros", Authors="['Inconnu(e)']", path="/Volumes/KOBOeReader/Kaufman, Andrew/Tous Mes Amis Sont Des Superheros - Andrew Kaufman.kepub.epub"
DEBUG:   95.7 KoboTouch:get_content_type_from_extension - start
DEBUG:   95.7 KoboTouch:update_device_database_collections - end for category='Littérature'
DEBUG:   95.7 KoboTouch:update_device_database_collections - category='Essai' books=1
DEBUG:   95.7 KoboTouch:update_device_database_collections - end for category='Essai'
Those lines tell me that "Thriller" has 142 books, "Littérature" has 209 books and "Essai" has 1. And that the book you are sending to the device is being added to the "Littérature" collection.

The next bit is updating metadata on the device. It checks all to compare what was read with what is in calibre. At the end of that is:

Code:
DEBUG:   95.8 KoboTouch:update_device_database_collections - Number of series set=0 Number of books=952
DEBUG:   95.8 KoboTouch:update_device_database_collections - Number of core metadata set=10 Number of books=952
DEBUG:   95.8 KoboTouch:update_device_database_collections - Finished
Which says there are 952 books on the device and in the library that were checked. For 10, the metadata was updated.

All that says is that the driver is updating the collections when you send a books. I had to check that as I use the automatic metadata management option so it is done every time the device is connected.

As far as I can tell, the collections tab, should show a number of books against each collection. And when you open the collections you should see books in them. If you aren't seeing books in the collections when you view them, check if a filter has been selected. The default should be "All", but, maybe something else is in use and hiding the books.

If they aren't showing, I probably need to see the database. That will let me see the state and hopefully why the books aren't showing. And another debug log would be good. But, this time, put the name of a book into the "Title to test when debugging" field of the driver configuration. That will dump more into the logs for books that match that what you put in. It shows what happens for the book for each action taken. You don't need the exact title, but, it must be an exact match for part of the title. To send me the database, upload it somewhere and PM a link to it. They can't be attached to posts or PMs.
davidfor is offline   Reply With Quote