Quote:
Originally Posted by eschwartz
If it was really necessary to use a script, couldn't we just use:
Code:
for file in *.epub *.mobi *.azw3 *.txt; do
calibredb add $file
done
or the Windows equivalent?
And then drop that into the folder and double-click.
|
Does that not assume all the formats are in the same folder or at least in an orderly folder structure?
I was assuming from this
Quote:
I have read several tricks in other sites but none has worked
|
that the books were scattered around a tree in a disorderly fashion.
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