09-22-2018, 12:46 PM | #1 |
Connoisseur
Posts: 53
Karma: 10
Join Date: Sep 2009
Device: PRS 505
|
Kobo Utilities Plugin Question
Hello,
I just installed the Kobo Utilities plugin, with the hope of using it to update metadata on my device (Aura H2O Edition 1). However, I can't figure out how to enable this function. I understand that I have to do this from the device list, but I don't know exactly what that means. I am looking at the books on the device as shown by Calibre's "Show books in main memory of device" option, and have selected a book, but the update metadata option in the Utilities plugin is greyed out. What am I doing wrong? Thanks in advance, Nike |
09-22-2018, 03:41 PM | #2 | |
Bibliophagist
Posts: 40,603
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
Advert | |
|
09-22-2018, 07:12 PM | #3 |
Connoisseur
Posts: 53
Karma: 10
Join Date: Sep 2009
Device: PRS 505
|
Thanks for the clarification; I must have misunderstood the instructions.
However, I am still confused about what the plugin does and how it interacts with the reader. What I am trying to do is fix a bunch (quite a lot) on my reader where the author's first name and last name are mixed up. I am not sure how this happened in the first place; looking at the Calibre files, probably it's because some used the format for author as last name, first name while others use first name last name Also there was no consistency in Calibre files in the format for author sort. I have now fixed the metadata in Calibre so all use the author field in the format "first name last name" while the author sort key is in the format "last name, first name" I'd now like to push these over to the device, so sorted author lists make sense. I used the "update metadata on device" function, and it seems to have worked on some books but not on others. Is there some other way to fix this, short of wiping my library, or removing the problem books, and side loading them again? Thanks, Nike |
09-22-2018, 10:33 PM | #4 | ||
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
The metadata update only works for books that are in the calibre library and on the device, hence it is only available when looking at the library. Quote:
Unless the sorting problem is with books that have multiple authors. In this case, the default way that calibre populates the author doesn't work well. The device expects the authors as "FN1 LN1, FN2 LN2". Calibre is more likely to use "FN1 LN1 & FN2 LN2". Because of this, I recommend using the following metadata plugboard to set the author: Code:
program: raw_list('authors', ', ') |
||
09-23-2018, 12:26 AM | #5 |
Connoisseur
Posts: 53
Karma: 10
Join Date: Sep 2009
Device: PRS 505
|
Thanks. I'm happy to run in debug mode, if you can tell me exactly what tests you would like me to do.
In case it's helpful, here are some examples of what's happening. My impression is that Kobo is doing something odd in the way it uses metadata to sort lists. For instance, if I go to My Books, select the Author's tab, and sort by Last Name, the first entry I see is Bruno A. This is wrong; the author's name is Bruno A. Cayoun. When I select the book, his name is displayed as Cayoun, Bruno A. This book is an Kepub purchased from Kobo. Similarly, I get a bunch of books by an author whose last name is shown in the list as "Ann." This is again wrong; that's the author's first name, and clicking on the name displays the author's name as Cleeves, Ann. In Calibre the author's name is Ann Cleeves, and the author sort key is Cleeves, Ann. Trying to manually update the metadata doesn't do anything. The plugin report is this: calibre, version 3.31.0 Kobo Utilities - Device library updated: Update summary: Books updated=0 Unchanged books=4 Books not on device=0 Total books=4 I had the same thing happen with Gutenberg books by Jane Austen. I fixed those in Calibre, deleted the books from the reader, and reloaded them. That solved the problem, but it's a pain to do for everything. However (and this may be a hint as to where the problem lies) the My Books > Author > Last name yields "Jane Austen" and clicking on the books gives the author's name as "Jane Austen." This is different from the problem behaviour, where the author's name is simply listed in the sorted list as (say) Ann and the shown upon clicking the book is "Cleeves, Ann" Any ideas for a simple fix to this would be welcome. Nike |
Advert | |
|
09-23-2018, 12:30 AM | #6 |
Connoisseur
Posts: 53
Karma: 10
Join Date: Sep 2009
Device: PRS 505
|
David:
I have the debug output from the attempt to fix metadata that I described. It's a bit long, and perhaps ought not to be pasted in to the forum; if there's some other way to get it to you, I'd be happy to do so. Nike |
09-23-2018, 12:48 AM | #7 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
The best way is to upload it somewhere and send me a PM with a link. Otherwise PM me for an email address to send it to.
|
09-24-2018, 02:55 AM | #8 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
I have had a look at the logs you sent, and it appears to be working correctly. The problem is the options you have and the data in the library.
Firstly, the options: Code:
DEBUG: 33.7 _update_metadata: number books= 4 options= {u'rating': False, u'title': True, u'series': True, u'descriptionUseTemplate': False, u'reading_direction': u'Default', u'set_sync_date': False, u'sync_date_library_date': u'timestamp', u'set_reading_direction': False, u'usePlugboard': False, u'isbn': False, u'description': False, u'update_KoboEpubs': True, u'published_date': False, u'descriptionTemplate': u'', u'subtitleTemplate': u'', u'subtitle': False, u'mark_not_interested': False, u'titleSort': True, u'publisher': False, u'authourSort': True, u'language': False, u'resetPosition': False, u'readingStatus': -1, u'author': True, u'setRreadingStatus': False} The following is a section of the log showing what happens for one of the books by Ann Cleeves. Code:
DEBUG: 33.8 generate_metadata_query - test_query=SELECT Title, Attribution, Description, Publisher, Series, SeriesNumber, Subtitle, ReadStatus, DateCreated, Language, PageProgressDirection, ___SyncTime, ISBN, FeedbackType, FeedbackTypeSynced, r.Rating, r.DateModified FROM content c1 left outer join ratings r on c1.ContentID = r.ContentID WHERE c1.BookId IS NULL AND c1.ContentID = ? DEBUG: 33.8 _update_metadata: searching for contentId='file:///mnt/onboard/Cleeves, Ann/Bird in the Hand, A - Ann Cleeves.kepub.epub' DEBUG: 33.8 _update_metadata: self.options[cfg.KEY_UDPATE_KOBO_EPUBS]= True DEBUG: 33.8 _update_metadata: contentID.startswith('file')= True DEBUG: 33.8 _update_metadata: found contentId='file:///mnt/onboard/Cleeves, Ann/Bird in the Hand, A - Ann Cleeves.kepub.epub' DEBUG: 33.8 result= {u'Series': None, u'Attribution': u'Cleeves, Ann', u'Subtitle': None, u'ReadStatus': 1, u'Language': u'en', u'Title': u'Bird in the Hand, A', u'___SyncTime': u'2018-08-14T23:27:50Z', u'Description': None, u'PageProgressDirection': None, u'ISBN': None, u'Publisher': None, u'DateCreated': None, u'SeriesNumber': None, u'DateModified': None, u'FeedbackTypeSynced': 0, u'Rating': None, u'FeedbackType': 0} DEBUG: 33.8 result['Title']='Bird in the Hand, A' DEBUG: 33.8 result['Attribution']='Cleeves, Ann' DEBUG: 33.8 _update_metadata: author= [u'Ann Cleeves'] DEBUG: 33.8 _update_metadata: using author_sort= Cleeves, Ann DEBUG: 33.8 _update_metadata: using author_sort - author= [u'Ann Cleeves'] DEBUG: 33.8 _update_metadata: title_string= Bird in the Hand, A DEBUG: 33.8 _update_metadata: title_string= Bird in the Hand, A DEBUG: 33.8 _update_metadata: authors_string= Cleeves, Ann DEBUG: 33.8 _update_metadata: authors_string= Cleeves, Ann Based on your earlier post, you want to use "FN LN" on the device. Which is the better choice for recent firmware. If that is the case, then don't select the "Author sort" option on the metadata update dialog. |
09-25-2018, 12:55 PM | #9 |
Connoisseur
Posts: 53
Karma: 10
Join Date: Sep 2009
Device: PRS 505
|
Thanks for taking the time to look at this.
Just to be clear: Calibre seems to distinguish between author name and author sort explicitly. What I am understanding from your post above is that Kobo internally uses the author name alone, and calculated the sort field from that. Am I correct in this? And if I check the "use author sort" option in the plugin, it pushes that over to the Kobo rather than the author name? Nike |
09-25-2018, 08:52 PM | #10 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Because of this, I recommend using the metadata plugboard I posted earlier in the thread. It seems to give the best results on the device. |
|
09-26-2018, 12:55 AM | #11 |
Connoisseur
Posts: 53
Karma: 10
Join Date: Sep 2009
Device: PRS 505
|
Thanks very much for your time and help. It all works well now. Somehow I got the impression that Kobo had the same two fields author and author sort as Calibre, which is where the confusion about the function of the plugin came.
Nike |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Kobo Utilities | davidfor | Plugins | 3109 | 10-20-2024 12:28 PM |
Kobo Hacks and Utilities Index | ItalianUruguayan | Kobo Reader | 26 | 08-09-2020 01:38 PM |
Aura H2O Kobo Utilities reporting 2 books not on device | Boneist | Kobo Reader | 11 | 10-29-2017 07:33 PM |
Calibre Kobo Utilities - Wishlist!! | Stevex | Kobo Reader | 42 | 10-17-2017 07:57 AM |
Help with Kobo Utilities needed | chiara_sc | Kobo Reader | 3 | 09-02-2016 08:05 PM |