![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Oct 2011
Location: The Shire
Device: iPad
|
CLI Metdata Change on Import
I have several different media types coming from multiple sources who won't have access to the Calibre GUI so I want to set up some drop folders where the file names will be parsed and metdata added to the files as they go in to Calibre.
The issue is that I have 4-5 different sources and the file name structure will not be the same for them so I need each one parsed differently. Using the "calibre" cli command seems to just import them with whatever the regular expression is in the gui. Is it possible to import them with a template called that will extract and set the metadata regular expression on a per import basis? e.g. /Calibreimport1/ takes files that are <date> <author> <title> <comment>.<format> or "12/22/20006 Smith,Mike MasterLetters.epub" /Calibreimport2/ takes files that are <author> <title> <date> <comment>.<format> or "Smith,Mike MasterLetters 12/22/20006.epub" And files could be arriving simultaneously in to each directory processing each one as they come in. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
You could add the files, parse the filename for metadata, create an opf file filled with the parsed metadata and finally set metadata. It's not the easiest option, but it should work.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Understanding Metdata download results | Caleb666 | Library Management | 2 | 08-06-2011 10:17 AM |
Import failed Error:404 when attempting to import from Calibre to Stanza | dvond | Apple Devices | 0 | 05-13-2011 03:00 PM |
Struggling with CLI | Paulinafrica | Calibre | 4 | 01-08-2011 02:04 PM |
prs505 cli | ees | Calibre | 3 | 01-10-2009 03:27 AM |
Change PDF title in Connect/Import files w/o Connect | jessesn | Sony Reader | 6 | 10-02-2006 12:55 PM |