04-20-2009, 11:48 AM | #106 |
Groupie
Posts: 184
Karma: 3633418
Join Date: Mar 2009
Location: UK
Device: Kobo Libra
|
Hi erayd,
First off thanks for writing this great tool in the first place. You r29 linux version still works (or at least it does with everything I've tried it with so far, however that does not include any crossover fics) it just lacks the nice formatting and naming of the changes ilovejedd has made. I agree it would be great if we could get those changes incorporated into the original as when you try and use ilovejedds versions with your fflag under linux everything breaks. |
04-20-2009, 11:52 AM | #107 |
Zealot
Posts: 134
Karma: 146
Join Date: Apr 2008
Device: Onyx Boox Poke 2
|
Hmmm.... maybe I should refactor this thing to eat XML recipes - might make life a tad easier :-).
|
Advert | |
|
04-20-2009, 12:08 PM | #108 | |||
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
Quote:
Quote:
Not really. They make changes to those, too, and while they announce changes to site layout, updates to the RSS feed tend to go under the radar. Believe me, I've tried. |
|||
04-20-2009, 08:13 PM | #109 | |
Zealot
Posts: 134
Karma: 146
Join Date: Apr 2008
Device: Onyx Boox Poke 2
|
Quote:
As far as the working on Linux bit goes, don't worry about that - half the reason I want a diff is so I can debug things as I merge it. Edit: Doesn't matter if your version is based off rgibbo's - you can still do the diff against r29, and it'll merge the changes rgibbo made too. Last edited by erayd; 04-20-2009 at 08:18 PM. |
|
04-20-2009, 08:27 PM | #110 | |
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
Ugh. I know I promised I'd clean up the source and stuff but it's just too frakkin hot to think (98F here in SoCal). In the meantime, here's a quick band-aid for ffnet.source.php. Again, this one's messy as hell and contains redundant code here and there but it should work... PHP Code:
|
|
Advert | |
|
04-20-2009, 08:31 PM | #111 | |
Zealot
Posts: 134
Karma: 146
Join Date: Apr 2008
Device: Onyx Boox Poke 2
|
Quote:
|
|
04-21-2009, 12:00 PM | #112 |
Groupie
Posts: 184
Karma: 3633418
Join Date: Mar 2009
Location: UK
Device: Kobo Libra
|
Gah I'm about to start banging my head against a brick wall...
ilovejedd, when using your ffnet.source.php code printed a few messages above to try and create an epub using the cli I get the following error message: Warning: Invalid argument supplied for foreach() in C:\...\html.codec.php on line 73 The line in question is: foreach($story['meta']['chapters'] as $key => $title) { I've tried it with every copy of html.codec.php I have and although the line numbers are different it falls over at the same bit of code everytime. I tried changing $title to $chaptitle as it is in ffnet.source.php just in case it was something as simple as that with no joy. Sorry to keep bothering you but I'm about to run out of already grabbed fics and I really don't want to have to go back to doing it manually plus your version of the script makes it look so much better. TIA for any help. |
04-21-2009, 12:20 PM | #113 | |
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
My mistake, change: PHP Code:
PHP Code:
*sigh* Really should start working on that clean source. |
|
04-21-2009, 12:27 PM | #114 |
Groupie
Posts: 184
Karma: 3633418
Join Date: Mar 2009
Location: UK
Device: Kobo Libra
|
LOL I know how bad it can be to get started on something you just really can't be bothered with I've been needing t put timesheets in for work for the last 6 weeks I just can't be bothered to get off my ar*e and write them
After making that change the error message has disappeared but I still get no epub file created (I changed html.codec.php back) , there must be something wrong on my end I just can't figure out what I've changed to make things suddenly stop working. Even if ffnet.source.php wasn't pulling down the pages properly surely it should still make the epub it would just be empty? |
04-21-2009, 01:05 PM | #115 |
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Oi.
It's empty because it's not finding the title. fflag checks validity of a storyid by checking if it has a title. This one's not my fault. MobileRead changed all "& # 1 8 7 ;" (no spaces) to "»". You need to do a manual search and replace for that. As far as I know, those should only be in the regular expression for category and title. |
04-21-2009, 01:44 PM | #116 |
Groupie
Posts: 184
Karma: 3633418
Join Date: Mar 2009
Location: UK
Device: Kobo Libra
|
You m'lady are a genius.
I should have realised that actually you did post about it before I just forgot about it. I guess I'm gonna have to spend a while pulling down a load of fics now in case they change things and break it again... I was trying not to do that because of FFNets TOS oh well... Again many thanks |
04-22-2009, 01:50 PM | #117 |
Junior Member
Posts: 7
Karma: 10
Join Date: Apr 2009
Device: kindle 2
|
I am so excited about this program! I bought my kindle specifically to read fanfic. LOL -I'm shamelessly addicted to it. Please forgive my lack of knowledge regarding creating code and recipes. (Is that even what it's called?) Is there some sort of help/tutorial available? I've tried to figure it out based on the posts in this forum but it's a bit confusing.
I used the great url link to download off of ffnet and imported the html to my desktop and dragged it into calibre. It worked perfectly!! However I'd like to see if I can find a way to pull fic from another site. I mostly get my fic from Twilighted.net. They have a number of fics that never make it off the site. It's a login protected site. I searched the forums hoping that someone else may have developed something to work with the site but no luck. I'm hoping to find a solution with this grabber. Last question -- I promise. How do the category/mass downloads work? I think I read that correctly - That it will download all the fics from a specific author or category and then update when there is a new title? LOL - This would be a dream come true. Even if you can't help me -- THANK YOU for building such an invaluable program!!!!!! |
04-22-2009, 03:32 PM | #118 | |||
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
Quote:
Quote:
I am planning on creating a FLAG script for mass downloads, however, I'm not sure when I'll be able to work on that. I still need to get a clean source over to erayd and I've yet to start working on it. Surprisingly, I suddenly got a social life. Normally, I never go out. Last edited by ilovejedd; 04-22-2009 at 03:36 PM. |
|||
04-22-2009, 04:10 PM | #119 | ||||
Junior Member
Posts: 7
Karma: 10
Join Date: Apr 2009
Device: kindle 2
|
Quote:
Quote:
Thanks for the super simple suggestion!!! Quote:
Quote:
Thanks for the super quick reply. I appreciate the suggestions and help. |
||||
04-22-2009, 05:20 PM | #120 | ||
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
Quote:
This isn't actually my project. It's erayd's. I'm just helping out a bit. Besides, the social life will be gone soon. My best friend from Colorado is visiting since she'll be gone to South Korea for a year or so. Her flight leaves next week so we're making the most of the time we have. |
||
Tags |
converter, fanfiction, fanfiction.net, grabber, lrf |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fanfiction.net on Kindle | forkyfork | Amazon Kindle | 26 | 08-07-2011 08:42 AM |
bookmarks/notes grabber | Reader2 | Android Developer's Corner | 0 | 10-02-2010 09:24 AM |
EASY fanfiction grabber? | sherryg | Workshop | 19 | 01-08-2010 03:13 AM |
FLAG (Fanfiction.net Lightweight Automated Grabber) and Calibre? | malkie13 | Calibre | 1 | 02-10-2009 05:43 PM |