Quote:
Originally Posted by sam_uk
I have got a 'mess' of ebook files on my hardrive, different formats, some compressed, some in a folder directory structure, some by author, some by title.
|
I had that mess when I started with Calibre.
Quote:
I was hoping someone might have a script that
|
Not a script, but I did write some functions into Calibre that will help.
Quote:
1) Recursively extracts all tarred files [ find ./ -name '*.rar' -exec unrar e -o+ {} \; ]
|
Calibre reads *.rar and *.zip files and extracts embedded ebooks.
Quote:
2) Organises those files into a single flat directory [ find . -type f -exec mv '{}' . \; ]
|
Why? Calibre doesn't care where they are.
Quote:
3) Removes duplicates [ yes 1 | fdupes -rd . ]
|
Turn on the Automerge function. Duplicate authors with near duplicate (fuzzy matched) titles are ignored if it's the same format.
Quote:
4) Copies all epub files to a new folder called 'calibre' or similar
|
Why?
Quote:
5) Coverts all the remaining .pdf .txt etc files to .epub and moves them to 'calibre' folder
|
Global; conversions usually suck, but you can do it easily enough inside Calibre after import.
Quote:
6) Sorts resulting folder alphabetically
|
Sort however you like in Calibre, after import.
Quote:
7) Goes and grabs the cover art from the internet
|
Calibre will do it globally.
Quote:
8) Makes me a cup of tea whilst it completes!
|
Nope - sorry