View Single Post
Old 02-24-2011, 09:53 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by sam_uk View Post
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

Last edited by Starson17; 02-24-2011 at 03:04 PM.
Starson17 is offline   Reply With Quote