Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 12-13-2015, 06:19 AM   #1021
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 Terisa de morgan View Post
I've tested it and it works for me. For avoiding empty columns I've used the same trick that I use at jacket (kovid told me so when I asked about the same problem:

Code:
 <div style="display:{_vts}"><b>Series 3:</b> {_tse}</div>
With _vts a custom_column with value 'None' if _tse is empty.
That's a good trick. But, it means for every column that you need to do this for, you need a second indicator column. Plus the extra non-display text is going to make the database a bit bigger.

At the moment, I'm looking at other templates. I started with the jacket because it was the close to what I wanted. I found I couldn't use this directly and pulled out code and simplified. That's what I posted last night. A relatively simple template based on the jacket.

Today, I've been looking at the metadata plugboard. Calling that to do the substitution turned out to be simple. But, the template is probably no simpler. To do what I did last night, I have:
Code:
{comments}{tags:|<p>Tags: |</p>}{rating:|<p>Rating: |</p>}{#kobo_last_read:|<p>Last Read: |</p>}{#words:|<p>Word count: |</p>}
That produces what I thinking about. But, I'm not sure if it is better than the other template. I think the first version is simpler to create. This version a lot more flexible.
Quote:
And I know I'm greedy but... in the same way you send the series when you update metadata, could you send the comments if 'use template' is activated?
Yes, it's about time to revisit the driver and metadata. But first I'll put this out in the Utilities.

My thoughts on this metadata update function in the utilities plugin are:
- Decide on the template. Or prevaricate and somehow support both.
- Add an option to not to update downloaded kepubs. I should have done this ages ago.
- Read the template from the root of the device. If there isn't one there, look in the resources directory of the calibre configuration directory. This allows different configuration for different devices. And that would be handy for people who share a calibre installation.
- Maybe put the updates into a job. If I do this, I would consider adding an option to run this automatically on connect.

Once I have this out, I'll start looking at the driver again It should be updating the metadata at the same time as the series info. Part of why I haven't done it is performance. No matter how I do it, it's going to add some time to the initial connection jobs. Adding the comments template might be a bit trickier as the driver code is separate from the Utilities plugin. But, I'll think about it.
davidfor is offline  
Old 12-13-2015, 06:30 AM   #1022
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,637
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by davidfor View Post
That's a good trick. But, it means for every column that you need to do this for, you need a second indicator column. Plus the extra non-display text is going to make the database a bit bigger.
The extra text could be a problem, the columns... not so much as they already need them for my jacket

Quote:
Originally Posted by davidfor View Post
Today, I've been looking at the metadata plugboard. Calling that to do the substitution turned out to be simple. But, the template is probably no simpler. To do what I did last night, I have:
Code:
{comments}{tags:|<p>Tags: |</p>}{rating:|<p>Rating: |</p>}{#kobo_last_read:|<p>Last Read: |</p>}{#words:|<p>Word count: |</p>}
That produces what I thinking about. But, I'm not sure if it is better than the other template. I think the first version is simpler to create. This version a lot more flexible.
Not so complicated, really.

Quote:
Originally Posted by davidfor View Post
My thoughts on this metadata update function in the utilities plugin are:
- Decide on the template. Or prevaricate and somehow support both.
- Add an option to not to update downloaded kepubs. I should have done this ages ago.
- Read the template from the root of the device. If there isn't one there, look in the resources directory of the calibre configuration directory. This allows different configuration for different devices. And that would be handy for people who share a calibre installation.
- Maybe put the updates into a job. If I do this, I would consider adding an option to run this automatically on connect.
The template at the device could be handy, and the last option would be the same, for me, that adding it to the driver.

Quote:
Originally Posted by davidfor View Post
Once I have this out, I'll start looking at the driver again It should be updating the metadata at the same time as the series info. Part of why I haven't done it is performance. No matter how I do it, it's going to add some time to the initial connection jobs. Adding the comments template might be a bit trickier as the driver code is separate from the Utilities plugin. But, I'll think about it.
As I said, I was being greedy, nothing else.
Terisa de morgan is offline  
Old 12-17-2015, 09:15 PM   #1023
melovesflying
Groupie
melovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy blue
 
Posts: 186
Karma: 13138
Join Date: Jun 2014
Device: Kindle Paperwhite 3, Kobo Aura, Kobo Glo HD
Quote:
Originally Posted by davidfor View Post
Yes, that's what you need to do. But first, you will need to send the books to the device and let it process them. The next time you plug it in, you can restore the reading status.
Do I need to reconfigure anything else on my new device or can I just plug it in and let Calibre and the Kobo plugins do the work without changing any existing settings that worked with my Aura? Great job on the plugin. Thanks!
melovesflying is offline  
Old 12-17-2015, 09:28 PM   #1024
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 melovesflying View Post
Do I need to reconfigure anything else on my new device or can I just plug it in and let Calibre and the Kobo plugins do the work without changing any existing settings that worked with my Aura? Great job on the plugin. Thanks!
You don't need to do anything on the device. Just make sure calibre and the plugins are configured the way you want them.
davidfor is offline  
Old 12-26-2015, 08:28 AM   #1025
melovesflying
Groupie
melovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy blue
 
Posts: 186
Karma: 13138
Join Date: Jun 2014
Device: Kindle Paperwhite 3, Kobo Aura, Kobo Glo HD
^ Thanks for that. Btw, I have more than a thousand books on Calibre. Do you recommend transferring them on the new device by batches or is it safe if I transfer them all in one go? Can't recall what I did on my Aura when I sideloaded my books for the first time.
melovesflying is offline  
Old 12-26-2015, 07:57 PM   #1026
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 melovesflying View Post
^ Thanks for that. Btw, I have more than a thousand books on Calibre. Do you recommend transferring them on the new device by batches or is it safe if I transfer them all in one go? Can't recall what I did on my Aura when I sideloaded my books for the first time.
With the current firmware and 1000 books, I don't think it matters much. The only thing is that it will take at least an hour to process the books after disconnecting. If you can wait that long, put them all on. If you want to read something quickly, just add a few and then add the reset later.
davidfor is offline  
Old 12-27-2015, 07:31 AM   #1027
melovesflying
Groupie
melovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy blue
 
Posts: 186
Karma: 13138
Join Date: Jun 2014
Device: Kindle Paperwhite 3, Kobo Aura, Kobo Glo HD
Quote:
Originally Posted by davidfor View Post
With the current firmware and 1000 books, I don't think it matters much. The only thing is that it will take at least an hour to process the books after disconnecting. If you can wait that long, put them all on. If you want to read something quickly, just add a few and then add the reset later.
I guess I can wait that long. Looks like I'll have to charge it to full first to calibrate the battery before adding anything. Am I doing this right? I forgot how I first calibrated my Aura.
melovesflying is offline  
Old 12-27-2015, 06:29 PM   #1028
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 melovesflying View Post
I guess I can wait that long. Looks like I'll have to charge it to full first to calibrate the battery before adding anything. Am I doing this right? I forgot how I first calibrated my Aura.
I haven't bothered to calibrate the battery levels in any my Kobo ereaders. I've never really had a problem with the gauge but basically just use it as a guide. If it does drop suddenly, I do look into it, but usually I can show that it was a "stuck" sync. I have found that if my internet connection is having problems, the sync can start but never complete. This is the biggest battery drain.
davidfor is offline  
Old 12-27-2015, 11:13 PM   #1029
melovesflying
Groupie
melovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy blue
 
Posts: 186
Karma: 13138
Join Date: Jun 2014
Device: Kindle Paperwhite 3, Kobo Aura, Kobo Glo HD
Quote:
Originally Posted by davidfor View Post
I haven't bothered to calibrate the battery levels in any my Kobo ereaders. I've never really had a problem with the gauge but basically just use it as a guide. If it does drop suddenly, I do look into it, but usually I can show that it was a "stuck" sync. I have found that if my internet connection is having problems, the sync can start but never complete. This is the biggest battery drain.
I never really turn on my wifi unless to update firmware. And that's after I get feedback here. Anyway, thanks for all the help.
melovesflying is offline  
Old 12-31-2015, 10:27 AM   #1030
melovesflying
Groupie
melovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy blue
 
Posts: 186
Karma: 13138
Join Date: Jun 2014
Device: Kindle Paperwhite 3, Kobo Aura, Kobo Glo HD
Quote:
Originally Posted by davidfor View Post
Yes, that's what you need to do. But first, you will need to send the books to the device and let it process them. The next time you plug it in, you can restore the reading status.
So I finally got my Glo HD and I tried doing the store/restore bookmarks to recover the reading statuses of my books from the Aura to the Glo HD. Unfortunately, it didn't work for me so I just did everything manually by updating all metadata and changing reading status of the books. What I did with the store/restore function was:
  • Connect the Aura
  • Select all books in the Calibre library
  • Click on store/restore bookmarks
  • Choose store with all options marked
  • Wait for it to be done then disconnect the Aura
  • Connect the new Glo HD
  • Transfer all books from the Calibre library to the new device
  • Let it process then disconnect
  • Reconnect the Glo HD to update all metadata
  • Choose restore and wait for it to finish then disconnect the device

Is there anything that I missed? I probably won't do it now but I hope this could clear up things for people who have similar issues.
melovesflying is offline  
Old 12-31-2015, 07:34 PM   #1031
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
That should have done. Did you check that the status was stored in the calibre library? When it finished, it should prompt you with books it found that had changes in status. And when you do the restore, it will display counts of how many books it found that needed changes.
davidfor is offline  
Old 01-01-2016, 04:28 AM   #1032
melovesflying
Groupie
melovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy blue
 
Posts: 186
Karma: 13138
Join Date: Jun 2014
Device: Kindle Paperwhite 3, Kobo Aura, Kobo Glo HD
Quote:
Originally Posted by davidfor View Post
That should have done. Did you check that the status was stored in the calibre library? When it finished, it should prompt you with books it found that had changes in status. And when you do the restore, it will display counts of how many books it found that needed changes.
The prompts said that the statuses changed after restore but when I checked my Glo HD, everything was still labeled as "unread". Store function did indeed save my reading statuses and positions.
melovesflying is offline  
Old 01-01-2016, 05:42 AM   #1033
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 melovesflying View Post
The prompts said that the statuses changed after restore but when I checked my Glo HD, everything was still labeled as "unread". Store function did indeed save my reading statuses and positions.
Then it should have worked. Try restarting the device and seeing what happens.
davidfor is offline  
Old 01-01-2016, 05:51 AM   #1034
Francois_C
Zealot
Francois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipse
 
Francois_C's Avatar
 
Posts: 106
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
Quote:
Originally Posted by davidfor View Post
With the current firmware and 1000 books, I don't think it matters much. The only thing is that it will take at least an hour to process the books after disconnecting. If you can wait that long, put them all on. If you want to read something quickly, just add a few and then add the reset later.
I have about 2,500 books in Calibre. Nearly all of them with ODT or DOCX sources, and large xcf/xcfbs2 Gimp sources for many covers (I know they'll be erased if the sub-dir name is changed by Calibre, but these are copies). 3.5 GB.
When I want to copy all of them to another device, I compress the whole Calibre directory to a 7z (or zip or rar) file, on the destination, I erase the Calibre dir created by the installation, and replace it with the copy of the original. I create an archive, because lots of small individual files need a long time to be copied to an USB key or disk, whilst a whole 3-GB file takes only minutes.
The whole operation will take less than half an hour on PCs with good processors.

Sorry. I should delete this post, but I don't find how to do it. I did not understand the thread was about transferring to the Kobo, probably because, to my mind, transferring such numbers as 1000 books at once to a Kobo was unlikely. The Kobo (I have an Aura H2O) is so slow and the firmware so bad, that transferring more than 20 books at once is unrealistic. Having more than 200 books on a Kobo is useless, since you cannot browse them fast enough.

Last edited by Francois_C; 01-01-2016 at 06:12 AM.
Francois_C is offline  
Old 01-01-2016, 05:53 AM   #1035
melovesflying
Groupie
melovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy bluemelovesflying can differentiate black from dark navy blue
 
Posts: 186
Karma: 13138
Join Date: Jun 2014
Device: Kindle Paperwhite 3, Kobo Aura, Kobo Glo HD
Quote:
Originally Posted by davidfor View Post
Then it should have worked. Try restarting the device and seeing what happens.
Still nothing. Ah, well. It's all good. I just manually changed everything.
melovesflying is offline  
Closed Thread

Tags
calibre, kobo, kobo utilities, kobo-utilities, plugins


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Manga plugin mastertea Plugins 6 01-06-2022 02:43 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


All times are GMT -4. The time now is 07:05 AM.


MobileRead.com is a privately owned, operated and funded community.