|  08-21-2014, 03:58 AM | #601 | ||||
| Grand Sorcerer            Posts: 24,905 Karma: 47303824 Join Date: Jul 2011 Location: Sydney, Australia Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos | Quote: 
 Quote: 
 Quote: 
 Quote: 
 | ||||
|   | 
|  08-21-2014, 05:38 AM | #602 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			Ah, so that is why the annotation list becomes useless? Still, in order to prevent that, you'd need to connect the device to calibre every time before reopening a book, not very practical.
		 | 
|   | 
|  08-21-2014, 08:26 AM | #603 | |
| Grand Sorcerer            Posts: 24,905 Karma: 47303824 Join Date: Jul 2011 Location: Sydney, Australia Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos | 
			
			Yes.  Quote: 
 | |
|   | 
|  08-22-2014, 02:38 AM | #604 | 
| Dead account. Bye            Posts: 587 Karma: 668244 Join Date: Mar 2011 Device: none | 
			
			My thoughts about annotations and Kobo Utils (let's abbreviate to KU) and also KoboTouch driver (KT) (or/and KoboTouch Extended, KTE). (As all the posts here just brainstorming mode): 
 | 
|   | 
|  08-22-2014, 05:29 AM | #605 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			May I add another suggestion? An option to move books between the internal storage and the card that would both move the actual ebook files and modify the database entries. That is, if it can be safely done.
		 | 
|   | 
|  08-22-2014, 01:17 PM | #606 | 
| Wizard            Posts: 1,751 Karma: 2667650 Join Date: Jul 2012 Device: Android, Nook Simple Touch, Nook Color, ..., Glo | 
			
			I would have found this extremely useful when I first got my glo and was learning the new reader and all the fun plugins. Made many mistakes and this would have helped big time
		 | 
|   | 
|  08-22-2014, 09:33 PM | #607 | 
| Grand Sorcerer            Posts: 24,905 Karma: 47303824 Join Date: Jul 2011 Location: Sydney, Australia Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos | 
			
			It's an interesting idea and I'll look at it. My first thought is that the plugin deletes the file on the device, updates the database and then triggers a send to device to get the book to the other memory. I can think of problems with that (mainly if the metadata or the save template have been changed), but it shouldn't be hard to do.
		 | 
|   | 
|  08-23-2014, 04:01 PM | #608 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			I've found an unexpected behavior that could be a bug, either in the plugin or in calibre's plugboard. I have some books where the author_sort does not match the author, because I want them listed under the translator or illustrator, for instance. In particular, there's an anonymous book (no author) where I've put the translator as author_sort. In the plugboard, I use {author_sort} (plus some function and regex) in the author template. And I have the EPUB metadata writer plugin disabled. So, I send the files to the device, the content is processed, and then I plug the device again and use the "update metadata in the device database" option from this plugin, choosing both author and title, as well as use the plugboards. This has worked nicely, but there's a stubborn book that refuses to have its author updated, and guess what book it is: the one with no author, it appears as "Desconocido" (which is "Unknown" in Spanish) so the data has been sent by calibre, because I have the device language set to English, and the EPUB file itself has no author, so there's nowhere else this word could come from. I've checked the database with sqlite browser and indeed it contains "Desconocido" as the Attribution for this book, and updating the metadata with the plugin only says that the book was not modified. The plugboard template works as intended, it gives the author_sort name for this book, and I also use author_sort for the location of the files in the device, and it is being used correctly, so I don't think I have anything wrong in my setup. It looks like the plugboard is not being used for this book in particular, and I suspect it is because it has no author. | 
|   | 
|  08-23-2014, 09:27 PM | #609 | 
| Grand Sorcerer            Posts: 24,905 Karma: 47303824 Join Date: Jul 2011 Location: Sydney, Australia Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos | 
			
			Jellby: Can you run calibre in debug mode and post the log for doing this? It should work. The log should show me what is happening.
		 | 
|   | 
|  08-24-2014, 03:14 AM | #610 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			This is the log. I updated three books where the author_sort does not match (although, in fact, that's any book, my author is "FirstName LastName", my author_sort is "LastName, FirstName"): Spoiler: 
 This is the metadata for the problem book, according to calibre's metadata.opf file: Spoiler: 
 The plugboard template is giving the correct result (checked in a custom column). | 
|   | 
|  08-24-2014, 04:34 AM | #611 | 
| Grand Sorcerer            Posts: 24,905 Karma: 47303824 Join Date: Jul 2011 Location: Sydney, Australia Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos | 
			
			Jellby: What options are you selecting on the update metadata dialog? I suspect you are only selecting the "Use plugboard" option. This option will only do anything if other options are also selected. The dialog shouldn't have allowed you to continue if this was the only option that was checked. I have attached a version that fixes this.  Just in case I am wrong, this also has a little extra logging in the update routine as it was not showing some information I needed. Can you try this version and see how it goes? Last edited by davidfor; 10-05-2014 at 06:50 AM. Reason: Removed beta version | 
|   | 
|  08-24-2014, 05:14 AM | #612 | ||
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | Quote: 
 Quote: 
 Spoiler: 
 | ||
|   | 
|  08-24-2014, 07:20 AM | #613 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			The problem is in calibre, not in the plugin. The same happens if I use the plugboard for save_to_disk, after changing the appropriate settings. The plugboard is used, because the title is altered, and if I use just "Test" for the authors template, it goes there too. But using {author_sort} as the authors template gives just the "Unknown" string. I'll file a bug report.
		 | 
|   | 
|  08-24-2014, 08:02 AM | #614 | |
| Grand Sorcerer            Posts: 24,905 Karma: 47303824 Join Date: Jul 2011 Location: Sydney, Australia Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos | Quote: 
 | |
|   | 
|  08-24-2014, 08:28 AM | #615 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			Speaking of which, I'd also like a way to update a book if the target filename changes (by changing the metadata or the save template): remove the old file, save the new file, and update the database entries with the new filename.
		 | 
|   | 
|  | 
| Tags | 
| calibre, kobo, kobo utilities, kobo-utilities, plugins | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| [GUI Plugin] Manga plugin | mastertea | Plugins | 7 | Yesterday 12:13 AM | 
| [GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM | 
| Kobo Utilities Plugin Question | nikev | Kobo Reader | 10 | 09-25-2018 11:55 PM | 
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |