View Single Post
Old 03-29-2009, 04:27 PM   #406
Mnementh
Groupie
Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.
 
Mnementh's Avatar
 
Posts: 185
Karma: 3633418
Join Date: Mar 2009
Location: UK
Device: Kobo Libra
Quote:
Originally Posted by ilovejedd View Post
Looks like you're not specifying the source. Which recipe are you using? The first one in the post with the zip or the last one I posted which links to my own webserver?

Code:
def print_version(self, url):
    main, sep, rest = url.rpartition('/1/')
    rmain, rsep, storyid = main.rpartition('/s/')
    return 'http://localhost/flag/getstory.php?source=ffnet&format=news&storyid=' + storyid
Note source=ffnet is specifically stated in the url. This script can also be used for FictionPress, you just change source=ffnet to source=fpress.

The zip file should contain a print.php file which you can also use. That one automatically uses ffnet as source. Just change the recipe to the following:
Code:
def print_version(self, url):
    main, sep, rest = url.rpartition('/1/')
    rmain, rsep, storyid = main.rpartition('/s/')
    return 'http://localhost/flag/print.php?storyid=' + storyid
However, I'm not sure what version of the script is still attached in the zip file. I think that one still hasn't been fixed to reflect the crossover changes FanFiction.Net implemented. I suggest using the online version of the recipe in the meantime.
Hmmm okay, I think I might be getting a bit confused as to how these scripts work if I'm reading what you said correctly.

I was using the flag.zip from the first post, I didn't realise there was an online version (except for eyrad's (I think that was his username) but that's been down since I stumbled upon this).

I think I'm gonna have to read up some more on using recipes in calibre before bothering people with questions again lol. Basically what I want is to be able to input a story id somewhere and have the script pull down all the chapters and turn them into one file.

Thank you for your help
Mnementh is offline