View Single Post
Old 10-09-2021, 05:51 PM   #6528
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,025
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by motherat View Post
Stripping style attributes from stories dowloaded from fanfiction.net removes some relevant formatting done by the author, for example style="text-align:center;".

However, not stripping style attributes results in preserving some weird and unnecessary padding that the site apparently puts into its div tags by default. (It looks like this: <div class="storytextp" id="storytextp" style="padding:0 0.5em 0 0.5em;">)

Does anyone have a solution? It's not possible to strip style attributes from div tags while preserving them for p tags, is it?
FFF does not have such a feature at this time. I might entertain the idea of a one-off ffnet specific optional feature to remove the 'style' attribute from the <div id='storytextp'> tag that contains the text for each chapter.

Does anyone else think this is worthwhile?

Quote:
Originally Posted by fanficfan1981 View Post
Ok I am still having issues after adding...
You don't need username/password for ffnet--it's one of the sites FFF never logs into.

FFF isn't finding any suitable cache entries: FFF: DEBUG: 2021-10-09 13:20:22,913: basebrowsercache.py(122): Cached 0 entries even though it does spend significant time looking ( do_cprofile time:121.6).

Do you have another [www.fanfiction.net] or [fanfiction.net] section somewhere in personal.ini with different settings? FFF shouldn't even try cloudscraper when use_browser_cache_only:true...

Calibre version shouldn't matter.

I would try, in this order:
  1. Setting browser_cache_age_limit:-1 then download in FFF, doesn't require redoing FFD download. Perhaps FFD's browser doesn't update the cache?
  2. Downloading a different story (a new, short one), both in FFD and FFF. Is this story specific or general?
  3. Manually deleting the contents of the FFD cache directory, downloading again in both FFD and FFF. (Again, I'd use a short story while testing.) Are the entries in the current cache somehow unrecognizable?
JimmXinu is offline   Reply With Quote