valiha: watercolor painting of my cat Lola (Default)
valiha ([personal profile] valiha) wrote in [community profile] ebooks2011-10-05 10:13 pm
Entry tags:

Another calibre question

HI, I have a calibre conversion question fandom people might understand better than MobileRead forumers.

I had the fanfiction downloader program called Graffer installed on my comp. I was happy with it because it would download fics from multiple sources and produced clean html files. Unfortunately it's creator gave up on the program and it is no longer updated, and it has stopped working for several major archives.

My work on converting my fics via calibre is slow, ad I often want to chuck my comp out the window, that's how frustrated calibre makes me feel. I was expecting import and conversion to be fairly straightforward, but calibre kept messing up the authors. I finally loked at the html coding and discovered that Graffer added a line in the metadata section which calibre would read as author name, but was actually the name of the programmer: <meta name='author' content='Grzegorz Hordynski' />

I wet to MobileRead to see if I can find a way to change this line in the html file automatically through bulk convert, but couldn't figure out the instructions or the regexes. I've been having a back and forth conversation with a member who doesn't understand what I'm after, so does anyone here know how to set up calibre so that it changes the programmer's name into the correct author name for selected ebooks in the actual html file, not just in the metadata?

[personal profile] boundbooks 2011-10-05 08:38 pm (UTC)(link)
I can't help with the older files, but I have a suggestion which might be useful for future downloads! I just started using this fanfiction downloaded which is super awesome. It's called flag

http://www.flagfic.com/

It supports

fanfiction.net
fictionpress.com
twilighted.net
adifferentforest.com
thewriterscoffeeshop.com
twiwrite.net
ficwad.com
adultfanfiction.net
fictionalley.org
harrypotterfanfiction.com
mediaminer.org

And will soon support

tthfanfic.org
wraithbait.com
hpfandom.net
archive.skyehawke.com
archiveofourown.org

And allows downloads in
EPUB
MobiPocket
PDF
HTML

Edited 2011-10-05 20:39 (UTC)
aithine: (Garcia - smiling)

[personal profile] aithine 2011-10-05 09:16 pm (UTC)(link)
If you can point me to a place to download the program (or if you can get it to me), I can take a quick look and let you know if it's possible to fix that. Also, links to the MR discussion(s) would help shorten that process.
rebecca2525: Abby Sciuto from NCIS with the word "geek" (Default)

[personal profile] rebecca2525 2011-10-06 07:53 am (UTC)(link)
OK, this is about html files you have already downloaded, right? I don't know if there's a way to do this in Calibre, but it would only be a few lines of Python script or Shell script to go through all your files and remove that line.

What Operating System are you on? Dou you already have Python installed, by any chance?