Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-23-2010, 01:24 PM   #1
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Metadata changes from Content Server?

I use the Content Server to grab a book and read it. I often don't have immediate access to Calibre that's running the server, so if I finish a book, or spot some bad metadata, there's nothing I can do about it. I have to remember to fix the problem or change the metadata later.

I've been wondering about a change to the search bar that would allow the metadata of all books that meet the search parameters to be changed. For example, let's say I want to mark a book as read. I'd search on the title as follows:
title:"=Huckleberry Finn"
I'd confirm it finds the one book I want marked, then I'd enter in the search bar:
title:"=Huckleberry Finn" set:#read=yes

If I see that title had a typo as in "Huckelberry Finn" I could do this:
title:"=Huckelberry Finn" set:title="Huckleberry Finn"

IOW, the "set" when found at the end of the search would trigger a metadata change, instead of being seen as a field name. The "set:" command would be followed by a field name an equals sign "=" and the value to set the field to.

Does this look useful to others? For Charles and Kovid, are there interactions between the content server and Calibre that make this difficult? Easy? It would be possible to use this on the search bar in the Calibre GUI, too. My initial thought is why bother, but I can see some applications for saved searches that modify metadata. It's primarily the content server that I'm interested in, however.

Alternatively are there other options to remotely change metadata that I haven't thought of or that are on the ToDo list?

Thanks for any comments.

Last edited by Starson17; 12-23-2010 at 01:30 PM.
Starson17 is offline   Reply With Quote
Old 12-23-2010, 01:30 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,775
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
the content server is designed to be readonly. Changing it to modify the database will be rather problematic, since the database is not designed for simultaneous write access.
kovidgoyal is online now   Reply With Quote
Advert
Old 12-23-2010, 01:39 PM   #3
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by kovidgoyal View Post
the content server is designed to be readonly. Changing it to modify the database will be rather problematic, since the database is not designed for simultaneous write access.
So the problem is that someone might be changing the DB from the GUI while someone else is changing it from the server?

If I implemented this within the GUI search code, would it immediately pass thru to the content server search code? I might do it for myself, if it isn't too hard, and just live with knowing about the risk.
Starson17 is offline   Reply With Quote
Old 12-23-2010, 01:46 PM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,703
Karma: 6658935
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Starson17 View Post
For Charles and Kovid, are there interactions between the content server and Calibre that make this difficult? Easy?
Making the content server read/write would violate several design decisions. I don't think it is practical if the C/S is running along with calibre. It might be possible if the C/S is running standalone.
Quote:
Alternatively are there other options to remotely change metadata that I haven't thought of or that are on the ToDo list?
I had something like this on my 'feature list' for my android work. Unfortunately, it went away when my android project went away.

I could imagine a r/w client tied into the GUI but running as a separate thread. We have all the necessary bits in place to prevent simultaneous update. What I am not sure if is whether GUI data would be refreshed. There is a notification mechanism, but I have never used it.

Edit: Typical... Kovid beat me to it.
chaley is offline   Reply With Quote
Old 12-23-2010, 01:46 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,775
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yes, that and that fact that more than one person could be connecting to the server at the same time is the problem.

If you modify the search_getting_ids function to do what you want, then it will work for the content server as well.
kovidgoyal is online now   Reply With Quote
Advert
Old 12-23-2010, 02:58 PM   #6
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by chaley View Post
Making the content server read/write would violate several design decisions. I don't think it is practical if the C/S is running along with calibre. It might be possible if the C/S is running standalone.
Do you see any problems if I simply modify search_getting_ids to change metadata and carefully refrain from letting anyone else modify metadata remotely or via the GUI? I can even refresh the GUI without concern, as no one will be using it during remote access.

I'd like to leave the GUI running, if possible
Starson17 is offline   Reply With Quote
Old 12-23-2010, 03:17 PM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,775
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
if you're running the CS from within the calibre GUI, there should be no problems.
kovidgoyal is online now   Reply With Quote
Old 12-24-2010, 08:31 AM   #8
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by kovidgoyal View Post
if you're running the CS from within the calibre GUI, there should be no problems.
Thanks!
Starson17 is offline   Reply With Quote
Old 04-03-2011, 10:34 PM   #9
jrt3a
Junior Member
jrt3a began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2010
Device: none
Starson17, did you figure out a way to edit metadata remotely that non-coders could implement? I'm eager to find a way to do this.
jrt3a is offline   Reply With Quote
Old 04-04-2011, 07:54 AM   #10
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by jrt3a View Post
Starson17, did you figure out a way to edit metadata remotely that non-coders could implement? I'm eager to find a way to do this.
No. You need to code to do what I was doing. It probably wouldn't help anyone else much, as I set it up to allow me to make certain very specific custom changes remotely. Most aren't the kind of changes that would make sense for anyone else. And, of course, as soon as I did that, I started having to worry about other users logging in. It was only safe for the situation where I could guarantee I was the only user.
Starson17 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Personal Content Server mdb139 Apple Devices 19 11-21-2011 12:40 PM
Need help - content server Sydney's Mom Calibre 0 08-28-2010 04:07 PM
Metadata server error Nanny38 Calibre 0 07-24-2010 07:22 AM
Problems with server of content marcostt Calibre 2 08-25-2009 09:38 AM
Content Server thibaulthalpern Calibre 5 04-28-2009 12:56 PM


All times are GMT -4. The time now is 10:48 AM.


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