|
|
#1 |
|
Comparer of the Ephemeris
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,170
Karma: 58793
Join Date: Mar 2009
Device: iPad
|
Using plugboards with content server
Is this feasible? G |
|
|
|
|
|
#2 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,853
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
Yes, but with caveats.
There are two kinds of plugboards. The first affects copying to a device, changing metadata during the copy process. The second affects databases stored on the device (device_db). The content server could use only the first. Looking at the content server code, I see that metadata is updated only for EPUB files (library.server.content.py). Today it does not use any plugboard. If a device 'content_server' is added to plugboards, and if content.py is told to use that device, then plugboard transforms would be applied. The code would look a lot like that found in gui2.device._upload_books. One concern is that today, no other format would acceptable as a plugboard source for the content server. Should the plugboard code be told about that? Hard to say. The current code permits specifying source formats that don't support certain metadata transforms, so the easy answer is 'no, and let the destination do what it can.' However, I can see problems with that answer.
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Comparer of the Ephemeris
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,170
Karma: 58793
Join Date: Mar 2009
Device: iPad
|
My use case is ePubs on iDevices, so it sounds like it could work.
Would it be reasonable to only enable epub as valid transform destination for the content_server device, and deal with other formats as they are requested? G |
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,853
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
The problem is that there is no mechanism in place in plugboard setup to restrict the formats a device can handle. Any restriction would be adhoc. Perhaps that is OK in this case.
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
|
#5 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,489
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It should be possible to have the metadata written to MOBI files as well as EPUB in the CS (MOBI is a little slower than EPUB which is why it was left out originally). That covers the two most common formats, IMO we can ignore the rest.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| content server error | brysio | Calibre | 3 | 12-18-2010 12:24 PM |
| Need help - content server | Sydney's Mom | Calibre | 0 | 08-28-2010 04:07 PM |
| Content Server edit help | selfdestroyer | Calibre | 2 | 08-06-2010 04:47 AM |
| Web Content Server | mezme | Calibre | 7 | 01-08-2010 09:59 PM |
| Content Server | thibaulthalpern | Calibre | 5 | 04-28-2009 12:56 PM |