Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 06-11-2021, 10:13 PM   #6016
SilentShadow123
Member
SilentShadow123 began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2021
Device: none
Quote:
Originally Posted by kim67255 View Post
I'm trying to get the browser cache feature to work. I can't even find my cache file. I cleared the browser cache. That didn't do anything.

I'm so lost. I've read the directions to do this but it's all above my head. In step 1, it says to find my cache directory but I can't even find that. I have an LG laptop. The directions where for a Mac.

I know enough about Calibre to load my stories/books, add columns ect. I've changed things in the personal ini. But now I'm getting this message when I try to update a story. The message is
Directory does not contain a known browser cache type: 'C:\WINDOWS\system32'

I took out what I put in and I'm still getting the same error.

I know I sound like a moron, but I need help. Several of you have helped in the past and have been very patient with me. Any help would help. Thanks in advance.
As someone who is not tech-savvy, I understand how difficult this is. I got it to work eventually through a series of steps I followed. I can try to help you out the best I can, but please keep in mind that this is likely out of my jurisdiction and this is the way I got it to work.

1. Find your browser cache location. For mine, I have a Mac and my browser is Chrome. From the list given to us on https://github.com/JimmXinu/FanFicFa...erCacheFeature, I located it to be:
#browser_cache_path:/Users/your.user/Library/Caches/Google/Chrome/Default/Cache

For your LG Laptop which likely runs Windows, if you use the browser Chrome, then your location would be either of these two:

browser_cache_path:C:\Users\YourUser\AppData\Local \Google\Chrome\User Data\Default\Cache
browser_cache_path:C:\Users\YourUser\AppData\Local \Google\Chrome\User Data\Profile 1\Cache

For Firefox: browser_cache_path:C:\Users\YourUser\AppData\Local \Mozilla\Firefox\Profiles\ZjwI7Fo4.default\cache2

Just make sure to choose the appropriate option for your location, and replace "YourUser" with your windows username.

2. After you've found the right location enter it below [defaults] in personal.ini.

The top part of my code looks like this:
[defaults]
browser_cache_path:/Users/YourUser/Library/Caches/Google/Chrome/Default/Cache
## [defaults] section applies to all formats and sites but may be
## overridden at several levels. Example:

3. Last step is to copy in these lines of code near the end of the personal.ini code under [overrides]:

[www.fanfiction.net]
##the following line tells FFF to use the browser cache when set to true
use_browser_cache:true
##the following line limits FFF to use cache entries no older than the ##number of hours shown
##(in this case, cached items no 4 hours or less old).
browser_cache_age_limit:4.0
use_browser_cache_only:true

(You don't have to add in the comments if you don't want to. They're just a personal preference of mine.)

Last edited by SilentShadow123; 06-11-2021 at 10:17 PM.
SilentShadow123 is offline   Reply With Quote
Old 06-11-2021, 11:05 PM   #6017
kim67255
Member
kim67255 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Apr 2016
Device: kindle fire
Quote:
Originally Posted by SilentShadow123 View Post
As someone who is not tech-savvy, I understand how difficult this is. I got it to work eventually through a series of steps I followed. I can try to help you out the best I can, but please keep in mind that this is likely out of my jurisdiction and this is the way I got it to work.

1. Find your browser cache location. For mine, I have a Mac and my browser is Chrome. From the list given to us on https://github.com/JimmXinu/FanFicFa...erCacheFeature, I located it to be:
#browser_cache_path:/Users/your.user/Library/Caches/Google/Chrome/Default/Cache

For your LG Laptop which likely runs Windows, if you use the browser Chrome, then your location would be either of these two:

browser_cache_path:C:\Users\YourUser\AppData\Local \Google\Chrome\User Data\Default\Cache
browser_cache_path:C:\Users\YourUser\AppData\Local \Google\Chrome\User Data\Profile 1\Cache

For Firefox: browser_cache_path:C:\Users\YourUser\AppData\Local \Mozilla\Firefox\Profiles\ZjwI7Fo4.default\cache2

Just make sure to choose the appropriate option for your location, and replace "YourUser" with your windows username.

2. After you've found the right location enter it below [defaults] in personal.ini.

The top part of my code looks like this:
[defaults]
browser_cache_path:/Users/YourUser/Library/Caches/Google/Chrome/Default/Cache
## [defaults] section applies to all formats and sites but may be
## overridden at several levels. Example:

3. Last step is to copy in these lines of code near the end of the personal.ini code under [overrides]:

[www.fanfiction.net]
##the following line tells FFF to use the browser cache when set to true
use_browser_cache:true
##the following line limits FFF to use cache entries no older than the ##number of hours shown
##(in this case, cached items no 4 hours or less old).
browser_cache_age_limit:4.0
use_browser_cache_only:true

(You don't have to add in the comments if you don't want to. They're just a personal preference of mine.)
This worked and now Calibre sees my cache directory. Now I'm back to the orig error that everyone else is getting.

cloudscraper reports: "Detected a Cloudflare version 2 Captcha challenge, This feature is not available...."


How do I work around that? I thought that was what the Browser Cache Feature was supposed to do.
kim67255 is offline   Reply With Quote
Old 06-12-2021, 01:55 AM   #6018
SilentShadow123
Member
SilentShadow123 began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2021
Device: none
Quote:
Originally Posted by kim67255 View Post
This worked and now Calibre sees my cache directory. Now I'm back to the orig error that everyone else is getting.

cloudscraper reports: "Detected a Cloudflare version 2 Captcha challenge, This feature is not available...."


How do I work around that? I thought that was what the Browser Cache Feature was supposed to do.
Yes, that's odd. Once I was done with all these steps, I wasn't seeing the Cloudflare error anymore. Are you sure you've followed the steps exactly and you've added all the necessary lines of code and uncommented them?
SilentShadow123 is offline   Reply With Quote
Old 06-12-2021, 03:16 PM   #6019
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,995
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by kim67255 View Post
I'm trying to get the browser cache feature to work. I can't even find my cache file. I cleared the browser cache. That didn't do anything.

I'm so lost. I've read the directions to do this but it's all above my head. In step 1, it says to find my cache directory but I can't even find that. I have an LG laptop. The directions where for a Mac.

I know enough about Calibre to load my stories/books, add columns ect. I've changed things in the personal ini. But now I'm getting this message when I try to update a story. The message is
Directory does not contain a known browser cache type: 'C:\WINDOWS\system32'

I took out what I put in and I'm still getting the same error.

I know I sound like a moron, but I need help. Several of you have helped in the past and have been very patient with me. Any help would help. Thanks in advance.
System32 is definitely not your cache folder. The location depends on which browser you are using.
ownedbycats is offline   Reply With Quote
Old 06-12-2021, 04:54 PM   #6020
kim67255
Member
kim67255 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Apr 2016
Device: kindle fire
I was able to update 2 stories last night. This morning I tried and it won't work. I've tried your step 3. the same thing. I take it out same thing I have it in now and get this message: cloudscraper reports: "Detected a Cloudflare version 2 Captcha challenge, This feature is not available...."


Is all of this a workaround until ffn gets their act together/finish whatever it is they are doing? Or is this the way we need to start updating all ffn stories.?

At least now my Calibre is seeing the cache so that is better than last night.
kim67255 is offline   Reply With Quote
Old 06-13-2021, 12:01 PM   #6021
milford833
Member
milford833 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Oct 2009
Device: Kindle Fire
Don't know if this idea has been mentioned in the past or not. I have found when I get a cloudflare capcha challenge and I go back a page or reload the page or something along the line of reloading the page, it clears the captcha and it goes on to the page. I do not know if this is possible to do or not in the fan fiction app, or if has been mentioned or tried before. Just thought I would let you know something I have done to avoid the cloudflare capcha. (I mainly try to avoid it because I am on a VPN and Capcha, for some reason, does not work in the states when using it, but it does work if I move the VPN connection to another country).
milford833 is offline   Reply With Quote
Old 06-13-2021, 03:09 PM   #6022
HowWouldIKnow
Enthusiast
HowWouldIKnow began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Dec 2020
Device: Kobo Glo
Is there a site where people share their inis?
I would assume most want the same thing...

I still get:
Erotica Tags, Summary, Erotica Tags, Rating with blanking the titlepage:

Quote:
[www.literotica.com]
extra_titlepage_entries:
use_basic_cache:true
include_tocpage:false
##extratags_label:literotica

##extra_valid_entries:eroticatags,averrating
##eroticatags_label:Erotica Tags
averrating_label:Average Rating
##extra_titlepage_entries:eroticatags,averrating
add_to_include_subject_tags:,eroticatags
titlepage_entries: seriesHTML,category,genre,language,characters,ship s,status,datePublished,dateUpdated,dateCreated,rat ing,warnings,numChapters,numWords,publisher,erotic atags,description


use_meta_keywords: true
chapter_categories_use_all: true
clean_chapter_titles: true
description_in_chapter: true

extratags_label:literotica
extratags:literotica

custom_columns_settings:
averrating=>#usrrating
And I just realized that the settings are not overriden.
When I have tocpage:false in epub and tocpage:true in literotica, it will not write an toc, but when I have tocpage:true in epub and tocpage:false in literotica it will write one.

Is that a bug or is there a Setting that does this?

Last edited by HowWouldIKnow; 06-13-2021 at 03:28 PM.
HowWouldIKnow is offline   Reply With Quote
Old 06-13-2021, 03:42 PM   #6023
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,995
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I am not responding to any post in specific, but when Cloudflare was first implemented there was a pretty long discussion about what options were available and Jim decided that using the cache would be best. I believe he specifically said that he did not care to get into an arms race with Cloudflare.
ownedbycats is offline   Reply With Quote
Old 06-13-2021, 10:50 PM   #6024
bigwoof
Connoisseur
bigwoof began at the beginning.
 
Posts: 88
Karma: 18
Join Date: Jun 2020
Device: Boox Note Air3, don't use my kindle anymore
Thanks for implementing the Cache feature Jim!

Thanks Jim for the cache feature. It works really well!!

Finally got round to using it this past weekend as the aggressive cloudflare setting FFF is using seems to be here to stay...

some "tips" that might help others

1. if using email notifications from FFF to announce new chapters / books of subscribed stories/authors/communities, it's useful to label all messages from bot@fanfiction.net with a special tag (in gmail, you just setup a rule). that way you can easily find all the messages that need special handling (over others from say AO3 that don't)

2. Hotkeys are your friends in chrome. what I do is go to my special label (my label is
called process) and then click the last new email, control click on all the links to load the new chapter in a new background tab and then use the previous message button and quickly finish loading up all the new emails.

After all new emails are done, click on the label again, select all emails, right click and mark them as unread and right click again and remove the label. now you can just use the "get story urls from email" feature in FanficFare to process all the updated and new stories at one go. but before starting the FanFicFare process, you should do the following bit below first

After clearing the labels in the gmail tab, I then switch to the first opened tab (with an updated FFF story pointing to the latest chapter as the email notification link sends you there by default) with "Control-Tab" (hotkey to switch to next tab to the right in Chrome) and then put the mouse where the chapter selector is, click on it and select first page (need to reload the first and last page in the cache). then control-tab, click (no need to move the mouse as the chapter selector is in the same place for all stories), and repeat for all tabs.

takes 5 mins to clear about 20-30 new stories. if a story has more than one new chapter, additional clicking is needed.

exception is emails from FFF communities pointing out new stories added to the community. for those emails, the link to the story is not the top link (that links to the community link). you need to scroll down and click the 2nd link.

3. The WebToEpub Chrome plugin is super useful if you want to load up a whole story (new story or something that just broke due to reasons). click on pack epub to load all pages. if it hangs, you need to reload any FFF page and wait for the captcha to pass. WebToEpub will eventually resume but the page it was stuck on might have an error and need to be reloaded.

4. remember to click on the photo on the first page of a new story if you want the image in the epub (and set the appropriate use image setting in personal.ini).

5. A somewhat common FFF error occurs when a story has a new chapter (say 40) and you can open chapter 40 in the browser but when you select chapter 1, chapter 1 loads and shows only 39 chapters. i.e. the first chapter is not updated. You need to wait until the first chapter is updated (reload chapter 1 some time later) before the story can be updated properly.

Hope this helps... also, don't be like me and spend 15 mins wondering why the cache was not working only to realise the cache was not being saved due to disk space issues.. oops!

Last edited by bigwoof; 06-14-2021 at 07:12 PM.
bigwoof is offline   Reply With Quote
Old 06-14-2021, 04:58 AM   #6025
SilentShadow123
Member
SilentShadow123 began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2021
Device: none
Hey, I was wondering if there's a way to have the covers on fanfiction.net get automatically added as the covers of those same books after I've downloaded them into calibre? Right now, all the books I download from fanfiction.net have blue/default blank covers.
SilentShadow123 is offline   Reply With Quote
Old 06-14-2021, 05:36 AM   #6026
bigwoof
Connoisseur
bigwoof began at the beginning.
 
Posts: 88
Karma: 18
Join Date: Jun 2020
Device: Boox Note Air3, don't use my kindle anymore
Quote:
Originally Posted by SilentShadow123 View Post
Hey, I was wondering if there's a way to have the covers on fanfiction.net get automatically added as the covers of those same books after I've downloaded them into calibre? Right now, all the books I download from fanfiction.net have blue/default blank covers.
using the browser cache update method, you have to click on the picture on chapter 1 of each story you want a cover for and set the appropriate option in the [fanfiction.net] section of personal.ini basically the specific option below needs to be set to false (assuming you have set all the other "update cover" options in fanficfare to true)

## If you want covers to work correctly with use_browser_cache, you'll
## need to click the cover image at least once for each story. Or
## turn cover off.
never_make_cover:false

if you have already downloaded the whole story, you can delete the last chapter (press T in calibre to bring up the book editor then delete the last chapter and save) and then update to get the deleted chapter and the book image. It might be possible to just update the cover from the cache without updating a chapter. not sure if the update metadata options will work.

Last edited by bigwoof; 06-14-2021 at 05:39 AM.
bigwoof is offline   Reply With Quote
Old 06-14-2021, 10:00 AM   #6027
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: 6,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by HowWouldIKnow View Post
...
I still get:
Erotica Tags, Summary, Erotica Tags, Rating with blanking the titlepage:

...

And I just realized that the settings are not overriden.
When I have tocpage:false in epub and tocpage:true in literotica, it will not write an toc, but when I have tocpage:true in epub and tocpage:false in literotica it will write one.

Is that a bug or is there a Setting that does this?
Re: titlepage, I cannot duplicate your problem. Maybe you have more than copy of the site section?

For reasons that made sense at the time, [epub] takes priority over [site.com]. See https://github.com/JimmXinu/FanFicFa...ion-precedence

Quote:
Originally Posted by ownedbycats View Post
I am not responding to any post in specific, but when Cloudflare was first implemented there was a pretty long discussion about what options were available and Jim decided that using the cache would be best. I believe he specifically said that he did not care to get into an arms race with Cloudflare.


I have lost basically all interest in fighting with ffnet about this. Browser cache works well enough for me for the few active authors I still read on ffnet.

Unless someone comes up with a radical new idea, I'm not thinking about it anymore right now.

Many thanks to the members here are willing and able to help each other.
JimmXinu is offline   Reply With Quote
Old 06-15-2021, 12:08 AM   #6028
SilentShadow123
Member
SilentShadow123 began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2021
Device: none
Quote:
Originally Posted by bigwoof View Post
using the browser cache update method, you have to click on the picture on chapter 1 of each story you want a cover for and set the appropriate option in the [fanfiction.net] section of personal.ini basically the specific option below needs to be set to false (assuming you have set all the other "update cover" options in fanficfare to true)

## If you want covers to work correctly with use_browser_cache, you'll
## need to click the cover image at least once for each story. Or
## turn cover off.
never_make_cover:false

if you have already downloaded the whole story, you can delete the last chapter (press T in calibre to bring up the book editor then delete the last chapter and save) and then update to get the deleted chapter and the book image. It might be possible to just update the cover from the cache without updating a chapter. not sure if the update metadata options will work.
This worked. Thank you so much!
SilentShadow123 is offline   Reply With Quote
Old 06-15-2021, 07:47 AM   #6029
Philosophize
Member
Philosophize began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jun 2021
Device: Calibre
Quote:
Originally Posted by SilentShadow123 View Post
As someone who is not tech-savvy, I understand how difficult this is. I got it to work eventually through a series of steps I followed.
I'm pretty sure I've followed those steps, and I've reviewed them multiple times, but all I get is this error:

Browser Cache Failed to Load with error 'Supposed cache entry file did not end with EOF header with correct magic number: '/Users/XXX/Library/Caches/Google/Chrome/Default/Cache/faec7cb1ba53525a_0''

I get this even after clearing the cache and clicking through every chapter on a story. Curiously, I get the exact same error when trying a story that hasn't been cached.
Philosophize is offline   Reply With Quote
Old 06-15-2021, 11:15 AM   #6030
bigwoof
Connoisseur
bigwoof began at the beginning.
 
Posts: 88
Karma: 18
Join Date: Jun 2020
Device: Boox Note Air3, don't use my kindle anymore
Quote:
Originally Posted by Philosophize View Post
I'm pretty sure I've followed those steps, and I've reviewed them multiple times, but all I get is this error:

Browser Cache Failed to Load with error 'Supposed cache entry file did not end with EOF header with correct magic number: '/Users/XXX/Library/Caches/Google/Chrome/Default/Cache/faec7cb1ba53525a_0''

I get this even after clearing the cache and clicking through every chapter on a story. Curiously, I get the exact same error when trying a story that hasn't been cached.
2 quick things:

1. if you get the same behaviour before and after clearing the cache, your directory might not be the actual cache directory then.

it appears you are on a mac (so I can't give a definitive answer as I don't have one)

but can you try this directory instead?

/Users/XXX/Library/Caches/Google/Chrome/Default/Cache/ instead? replace XXX with your user.

also please view the directory above (and your original) in a file browser. the actual cache directory will have files inside called index, data_0, data_1, ..., and lots of other small files.

2. If the directory is correct, make sure chrome can write to it and that you have enough disk space.

to check it's the right directory and it's working, launch chrome, access new websites and make sure files are appearing in that directory. if nothing is appearing, it's either wrong or you don't have permission / sufficient disk space.

hope this helps!
bigwoof is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 523 07-15-2025 06:45 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 12:48 PM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 06:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 04:48 AM.


MobileRead.com is a privately owned, operated and funded community.