View Single Post
Old 09-08-2015, 08:34 PM   #552
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by JimmXinu View Post
Use the URL to the story index or the first 'chapter' instead of a URL to later chapters. For that story: http://www.hpfandom.net/eff/viewstory.php?sid=42717

Unlike most sites, hpfandom.net doesn't use the 'storyId' in each chapter URL.

I'm looking into how that might be worked around, but there are difficulties.
It isn't promising.

Without hitting the server, FFF can't tell that the URL given is for a later chapter, not the start of the story. There's at least three ways that causes problems.

First, I can modify the site adapter to figure that the URL given isn't the 'story' URL. I have this code in hand and it allows downloads using chapter URLs.

Second, the plugin would need to be changed to allow the story URL to be changed after metadata fetch. For virtually all other sites, a 'normalized' story URL can be made without hitting the site and that's what's stored in the calibre DB.

Third, the Reject URL list check as is will not work correctly when you give a chapter URL. The reject list check would have to be later in the processing, changing the behavior and possibly causing other problems.

Perusing the existing code, however,, there are a small number of other site adapters that also set the story URL after fetching data. So I guess I'll have to think about this more deeply and come up with an actual solution.
JimmXinu is offline   Reply With Quote