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 02-03-2023, 02:18 PM   #7996
riothamus
Connoisseur
riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!
 
Posts: 97
Karma: 100000
Join Date: Nov 2010
Device: KOA3, KV, KOA2
So I've been using FFF browser cache with FanFictionDownloader for a while now with few issues. I've just had to stop doing a bulk text file and do one fic at a time. However, today after updating to the latest versions of Calibre and FFF I'm getting the following error:

Code:
HTTP Error in FFF 'Page not found or expired in Browser Cache (see FFF setting browser_cache_age_limit)'(428) URL:'https://www.fanfiction.net/s/13983713/1/Wizards-of-the-Caribbean'
Any help would be appreciated as I didn't change any settings. This happened with 2 different fics.
riothamus is offline   Reply With Quote
Old 02-03-2023, 02:31 PM   #7997
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,992
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Tried clearing the browser cache before opening the page again? That usually resolves it for me.
ownedbycats is online now   Reply With Quote
Advert
Old 02-03-2023, 02:37 PM   #7998
riothamus
Connoisseur
riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!riothamus rocks like Gibraltar!
 
Posts: 97
Karma: 100000
Join Date: Nov 2010
Device: KOA3, KV, KOA2
Quote:
Originally Posted by ownedbycats View Post
Tried clearing the browser cache before opening the page again? That usually resolves it for me.
I'm not even sure how I would clear the browser cache for FanFictionDownloader. It seems to clear when it closes and when you download a new story.
riothamus is offline   Reply With Quote
Old 02-03-2023, 04:42 PM   #7999
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
The refactoring of Browser Cache feature in the last release uses the full title URLs now for ffnet stories.

It looks like FanFictionDownloader still uses ffnet story/chapter URLs without the title, which FFF doesn't look for now.

Honestly, I don't think I remembered to test with FanFictionDownloader. I assumed it was the same as Chrome.

I'll think about whether there's something I can do about that or not. My computer time is limited right now due to a medical issue.

In the meantime, you can downgrade to FFF v4.19 or switch to using one of the other methods instead of FanFictionDownloader. The open_pages_in_browser feature is what the refactoring was for.
JimmXinu is offline   Reply With Quote
Old 02-03-2023, 05:18 PM   #8000
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,992
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JimmXinu View Post
I'll think about whether there's something I can do about that or not. My computer time is limited right now due to a medical issue.
Hope you (or whoever is having the medical issue) feel better soon!
ownedbycats is online now   Reply With Quote
Advert
Old 02-05-2023, 01:56 AM   #8001
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 125
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Is it possible to add a tag based on word count? E.g. if the word count is less than 5k, the tag on Calibre is <5,000. This was all I could figure out lol, don't know what to put after numWords
Code:
 
replace_metadata:
 prefix_wordcount=>\[w\] \<5,000&&numWords
culytera is offline   Reply With Quote
Old 02-05-2023, 10:24 AM   #8002
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
Only if you can do it with regexp. There's probably a way, but I don't know it off hand.
JimmXinu is offline   Reply With Quote
Old 02-05-2023, 10:58 AM   #8003
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
New Test Version Posted

2023-02-05
- adapter_fictionlive: Soup chapter text to fix up HTML
- Add style attr by default to fiction.live
JimmXinu is offline   Reply With Quote
Old 02-06-2023, 01:48 AM   #8004
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 125
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Quote:
Originally Posted by JimmXinu View Post
Only if you can do it with regexp. There's probably a way, but I don't know it off hand.
I think I figured it out! So far this works. I also have a custom column for the exact word count with the type integers and format {:,d} so I can sort the list on Calibre by the word count taken from AO3.
Code:
add_to_extra_valid_entries:,prefix_wordcount
include_in_prefix_wordcount:numWords

replace_metadata:
 prefix_wordcount=>^(\d+|([0-4],\d{3})*)$=>[w] <5000
 prefix_wordcount=>^(([5-9],\d{3})*|10,000)$=>[w] 5000-10000
 prefix_wordcount=>^((?!10,000)(1\d,\d{3})*|20,000)$=>[w] 10001-20000
 prefix_wordcount=>^((?!20,000)([2-4]\d,\d{3})*|50,000)$=>[w] 20001-50000
 prefix_wordcount=>^((?!50,000)(([5-9]\d)|(\d{3,}))(,\d{3})+)$=>[w] 50000+

include_subject_tags:prefix_wordcount
It should return [w] 5000, [w] 5000-10000, etc. as tags. The comma is used as a delimiter by Calibre for tags so I didn't put one. Too bad 5000-10000 isn't sorted on the tag list properly unless I put a zero before it, but that looks weird to me.
culytera is offline   Reply With Quote
Old 02-06-2023, 10:09 AM   #8005
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
I didn't really think about it before, but if it were me doing this, I'd probably implement it with a Calibre 'built from other columns' custom column that is just a display for the existing exact word count column.
JimmXinu is offline   Reply With Quote
Old 02-06-2023, 10:12 AM   #8006
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,992
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JimmXinu View Post
I didn't really think about it before, but if it were me doing this, I'd probably implement it with a Calibre 'built from other columns' custom column that is just a display for the existing exact word count column.
I use this for displaying floating-point purchase cost in the tag browser. It can be easily changed to use integer wordcount.

EDIT: Note switch_if is a relatively new function, two or three versions ago. If you're using an older version may not be present.

Code:
program:
	switch_if(
		$$#purchasecost == 'none', '',
		$$#purchasecost ==# '00.00', '$0.00',
		$$#purchasecost <=# '00.99', '$0.01 - $0.99',
		$$#purchasecost <=# '04.99', '$1.00 - $4.99',
		$$#purchasecost <=# '10.00', '$5.00 - $9.99',
		$$#purchasecost <=# '15.00', '$10.00 - $14.99',
		$$#purchasecost <=# '15.00', '$10.00 - $14.99',
		$$#purchasecost <=# '20.00', '$15.00 - $19.99',
		$$#purchasecost <=# '30.00', '$20.00 - $29.99',
		'$30.00 and up' 
	)

Last edited by ownedbycats; 02-06-2023 at 10:16 AM.
ownedbycats is online now   Reply With Quote
Old 02-06-2023, 10:40 AM   #8007
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 125
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Quote:
Originally Posted by JimmXinu View Post
I didn't really think about it before, but if it were me doing this, I'd probably implement it with a Calibre 'built from other columns' custom column that is just a display for the existing exact word count column.
Yeah I already have an exact word count column taken from AO3's metadata. I just wanted word count groups on the tag list for MapleRead.

Also MapleRead didn't like the less than symbol on the tag so I had to change them a bit.
culytera is offline   Reply With Quote
Old 02-06-2023, 05:41 PM   #8008
nan1923
Enthusiast
nan1923 doesn't litternan1923 doesn't litter
 
Posts: 25
Karma: 140
Join Date: Jul 2022
Device: none
AO3 Anthology Wordcount

Hello!
Would it be possible to add the summed wordcount shown on the seriespage on ao3 as a seperate metadata? I'm trying to group my calibre bib in wordcount groups, and when I'm using this in the personal.ini:

add_to_extra_valid_entries:,prefix_wordcount
include_in_prefix_wordcount:numWords

replace_metadata:
prefix_wordcount=>^(\d+|([0-4],\d{3})*)$=>under 5K, under 10k
prefix_wordcount=>^(([5-9],\d{3})*|10,000)$=>under 10k
prefix_wordcount=>^((?!10,000)(1\d,\d{3})*|30,000) $=>10k-30k, under 100k
prefix_wordcount=>^((?!30,000)([3-4]\d,\d{3})*|50,000)$=>30k-50k, under 100k
prefix_wordcount=>^((?!50,000)([5-9]\d)|(\d{3,})*|100,000)$=>50k-100k, under 100k
prefix_wordcount=>^((?!100,000)((1\d,\d{3})|(\d{3, }))(,\d{3})+)$=>over 100k

add_to_custom_columns_settings:
prefix_wordcount=>#laenge_range,a

Then I'm getting the replaced metadata for each seperate story in the anthology, and not the grouping for the wordcount of the series.

If it is not possible/too much work to implement, could you add an option to exempt anthologies from changes in the personal.ini?

Thank you!
nan1923 is offline   Reply With Quote
Old 02-06-2023, 06:24 PM   #8009
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 nan1923 View Post
Would it be possible to add the summed wordcount shown on the seriespage on ao3 as a seperate metadata?
...
I'm going to refer you to the suggestion above of doing word count groups as a Calibre custom column instead. That will work for FFF downloads, anthologies and other unrelated books all equally well.

Quote:
Originally Posted by nan1923 View Post
If it is not possible/too much work to implement, could you add an option to exempt anthologies from changes in the personal.ini?
Probably not. I doubt very much anyone would want a feature to disable all personal.ini settings from individual anthology books--what they would want is to disable some settings. And they would never agree on which ones, leading to yet more complexity.

I acknowledge that the FFF Anthology feature is somewhat flawed. But I don't care to re-architect FFF enough to fix it.
JimmXinu is offline   Reply With Quote
Old 02-06-2023, 06:37 PM   #8010
nan1923
Enthusiast
nan1923 doesn't litternan1923 doesn't litter
 
Posts: 25
Karma: 140
Join Date: Jul 2022
Device: none
Thank you for the answer, I didn't know that about using templates.
Now maybe a dumb question, my test template works in the template tester, then I stored it as a stored template, but how do I get it to activate as a setting for the whole bib and actually change the metadata?
nan1923 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 10:26 PM.


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