|
|
#1 |
|
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Jul 2010
Device: perler
|
calibredb add - exclude formats?
is there a way to exclude certain formats from imported by
Code:
calibredb add.. and is there a way to convert a book while importing via a command line switch? |
|
|
|
|
|
#2 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
On linux/OSX, you'd use something like:
Code:
for i in *.FMT1 *.FMT2 *.FMT3; do calibredb add $i done Code:
for i in *.FMT1 *.FMT2 *.FMT3; do ebook-convert $i /tmp/$(basename $i).END_FMT calibredb add /tmp/$(basename $i).END_FMT done Last edited by eschwartz; 11-26-2014 at 03:29 PM. |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Jul 2010
Device: perler
|
this way I would need to write my own loop to search thru subdirectories, I hoped, that I can use a switch together with
calibredb add ---r $path |
|
|
|
|
|
#4 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
We can use "find" as well, which should recurse automatically.
Code:
find . -type f \( -name "*.FMT1" -or -name "*.FMT2" \) -exec calibredb add {} \;
(On Windows, the characters ;() do not get escaped.) Last edited by eschwartz; 11-26-2014 at 04:25 PM. |
|
|
|
|
|
#5 |
|
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Jul 2010
Device: perler
|
followed by \;
thanks
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Correct.
![]() Fixed. Last edited by eschwartz; 11-26-2014 at 04:23 PM. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| calibredb add problem | jmwatte | Calibre | 6 | 10-17-2014 03:30 AM |
| calibredb add metadata issue | vir_db | Library Management | 0 | 07-21-2014 08:12 AM |
| cannot add book to calibredb using CLI | bump | Calibre | 2 | 04-04-2014 02:33 AM |
| calibredb add --title= not working | krischik | Library Management | 2 | 04-06-2012 03:57 AM |
| calibredb add -- how to add additional metadata? | TuxGirl | Calibre | 16 | 12-29-2011 02:01 AM |