View Single Post
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,646
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