![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Dec 2011
Device: sony prs-t1
|
Add books in bulk
How can I transfer to Calibre all books in a PC folder instead of one by one? I have read several tricks in other sites but none has worked. Thanks.
|
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,647
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@fibero - if you can get the paths to all the book files (epub, mobi, txt etc) into a file, then you could edit it into a script that used calibredb add command to add each book.
Suggest you experiment with a few books and a test library BR |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
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)
|
You can drag-and-drop files onto calibre to add them, or use the Add books toolbar icon. Both allow you to select/drag multiple books.
The Add books toolbar icon also has a dropdown that allows you to choose a folder and import all books in that folder. It is the third option. |
![]() |
![]() |
![]() |
#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)
|
Quote:
Code:
for file in *.epub *.mobi *.azw3 *.txt; do calibredb add $file done ![]() And then drop that into the folder and double-click. |
|
![]() |
![]() |
![]() |
#5 | ||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,647
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
I was assuming from this Quote:
I've run into this with a couple of new calibre installs. I've used a file locator such as agent ransack to find files in a tree (device), sort by file type, remove unwanted types/files, copy paths to a file (e.g. addbooks.bat) and wrap calibredb-add " and " around each line. I guess I could drag drop out of the file locator, or create hardlinks in a folder and add books from there. But the advantage of 'my way' is that the batch file itself provides a simple audit trail with no effort. The alternative would be to use a file system log analyser to extract an audit trail... BR |
||
![]() |
![]() |
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)
|
That is when I pull out find, but I am not sure that can be duplicated in Windows batch without using gfind from gow or something. Which obviously requires downloading and installing yet more tools (and most people don't need unix tools for windows on an ongoing basis).
But the OP said "a folder", so hopefully... ? ... Or something like: Code:
recursedirs() { for file in *.epub *.mobi *.azw3 *.txt */ ; do if [[ -d "${file}" ]]; then cd "${file}" recursedirs else calibredb add "${file}" fi done } The one time this won't work is when you want to import files from all over and don't want calibre to search your entire C: drive trying to find books -- then I guess a dedicated Ransack would be better for weeding out the noise. Because calibre will of course pick up on a lot of stuff, including HTML and ZIP files and all word documents etc. calibre is capable of traversing a single directory tree and importing all recognized ebook types, recursively, on its own though -- if that is what you need. ![]() |
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Dec 2011
Device: sony prs-t1
|
Add books in bulk
Thankyou all. Given my limited knowledge, I will try Option 3 of the Add Books button in the GUI as recommended by eschwartz.
|
![]() |
![]() |
![]() |
#8 |
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)
|
![]() Option three it is! |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add Covers in Bulk | sp000n | Library Management | 2 | 01-27-2015 01:07 AM |
How to bulk add the same book cover | Rusherman | Library Management | 4 | 05-03-2013 08:55 PM |
Merge Formats library into Metadata library? Or, Add Format in bulk? | Sabardeyn | Library Management | 5 | 01-23-2013 06:00 AM |
Trying to add large library of books - add books seems to have hung | nicknefarious | Library Management | 1 | 06-18-2012 09:32 AM |
K2 skins recommendations/reviews? Wanted: add grip, no bulk, good fit/coverage | Starhawk | Amazon Kindle | 12 | 03-24-2009 04:01 PM |