View Single Post
Old 09-07-2013, 11:47 AM   #1800
BaconButty
Connoisseur
BaconButty will become famous soon enoughBaconButty will become famous soon enoughBaconButty will become famous soon enoughBaconButty will become famous soon enoughBaconButty will become famous soon enoughBaconButty will become famous soon enough
 
Posts: 69
Karma: 520
Join Date: Jun 2012
Location: France
Device: Kindle Paperwhite 5 & iPad Mini & Galaxy Tab10
Quote:
Originally Posted by leckadams View Post
Holy crow! So I consider myself fairly adapt at learning things, but I have NO clue how to do what was just explained to fix the solution.

Is there a how to fix Calibre extension for dummies version?

thanks
Well, I tried ... and failed
But I'm not usually one to look under the bonnet to find out how things work!
See if you can do better (shouldn't be difficult at all!)

(With Windows)
Open Calibre Maintenance, Advanced, Miscellaneous, Open Calibre Configuration Directory.

From there, open as follows: plugins, FanFictionDownLoader.zip, fanficdownloader, adapters.

Find the file called adapter_fanfictionnet.py and copy it into your docs.
Rename this copy adapter_fanfictionnet (original).

Create another copy of the same file in the same location.
Open this file with Notepad and find the section of code shown in the repair suggested in shesgottaread's post above.
Replace that section of code with the suggested repair code, making sure you respect the spaces and syntax.
Before you save and close the file, ensure you update the FFDL version number in the code with the current version (mine says 1.7.39).
Save and close.

Drag and drop the updated file into the list of adapters opened via Calibre.
When prompted by Windows, select to replace the existing file.
Close the list of adapters etc.
Restart Calibre.

If the FFDL icon is missing from its usual place in the toolbar, something has gone wrong.
But do not despair, you still have the original adapter_fanfictionnet.py file.
Simply go back to your Docs, rename the new adapter_fanfictionnet as adapter_fanfictionnet-repair.
Rename the file called adapter_fanfictionnet (original) as adapter_fanfictionnet.

Open Calibre Maintenance... as before, then drag and drop the file called adapter_fanfictionnet into the list of adapters.
When prompted by Windows, select to replace the existing file.
Close the list of adapters etc.
Restart Calibre and it should be back to normal, albeit still without a FFN fix...

Well, that's how I did it anyway!


Maybe someone more used to this can highlight where I went wrong when I tried to fix it...

Last edited by BaconButty; 09-07-2013 at 11:50 AM.
BaconButty is offline