|10-11-2011, 02:51 PM||#1|
Join Date: Oct 2011
Location: The Shire
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?
/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.
|10-11-2011, 03:11 PM||#2|
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 Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Understanding Metdata download results||Caleb666||Library Management||2||08-06-2011 11:17 AM|
|Import failed Error:404 when attempting to import from Calibre to Stanza||dvond||Apple Devices||0||05-13-2011 04:00 PM|
|Struggling with CLI||Paulinafrica||Calibre||4||01-08-2011 03:04 PM|
|prs505 cli||ees||Calibre||3||01-10-2009 04:27 AM|
|Change PDF title in Connect/Import files w/o Connect||jessesn||Sony Reader||6||10-02-2006 01:55 PM|