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 10-11-2022, 02:29 PM   #7591
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by dailyalice View Post
Edited to say: Oh, I could just change publisher instead of site and all would be well, I bet.
JimmXinu is offline   Reply With Quote
Old 10-11-2022, 02:33 PM   #7592
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,983
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by dailyalice View Post
Though I just realized that I have a line in my personal ini right now under replace metadata to change site "archiveofourown.org" to "Archive of Our Own" thinking it looks nicer under Publisher in my calibre library.
I made that mistake for a long time (at least three years!): https://www.mobileread.com/forums/sh...postcount=7178

Last edited by ownedbycats; 10-11-2022 at 02:36 PM.
ownedbycats is offline   Reply With Quote
Old 10-11-2022, 04:15 PM   #7593
dailyalice
Geek of All Trades
dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!
 
dailyalice's Avatar
 
Posts: 55
Karma: 100878
Join Date: Aug 2012
Location: Minneapolis
Device: Kindle Oasis (3rd gen)
Quote:
Originally Posted by ownedbycats View Post
I made that mistake for a long time (at least three years!): https://www.mobileread.com/forums/sh...postcount=7178
Glad to see I'm not alone! And I appreciate the link.

I had it like that in an old personal.ini I dug up and thought it seemed like a reasonable thing to do, didn't realize it would make a difference. Now I know better (and am glad I learned this before recommending it in my guide).

It's been interesting looking at old personal.ini files and trying to figure out what I was doing and why I did it that way.
dailyalice is offline   Reply With Quote
Old 10-11-2022, 05:14 PM   #7594
icecold
Enthusiast
icecold began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Mar 2020
Device: Android,
So I'm not expecting anything to be done about this because there's are always going to be edge cases for SB/SV/QQ title and category/fandom parsing. Just wanted to report this so you knew what one of those edge cases were.

But anyways FFF mangles the title and fandom for this story, https://forums.sufficientvelocity.co...y-quest.99223/
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20221011_170328.png
Views:	218
Size:	7.9 KB
ID:	197107  

Last edited by icecold; 10-11-2022 at 05:17 PM. Reason: Added Attachment
icecold is offline   Reply With Quote
Old 10-11-2022, 06:26 PM   #7595
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by icecold View Post
So I'm not expecting anything to be done about this because there's are always going to be edge cases for SB/SV/QQ title and category/fandom parsing. Just wanted to report this so you knew what one of those edge cases were.

But anyways FFF mangles the title and fandom for this story, https://forums.sufficientvelocity.co...y-quest.99223/
Yep, that's a thing.

You can correct the title and clear tagsfromtitle by putting in story specific replacements:
Code:
[https://forums.sufficientvelocity.com/threads/the-best-and-worst-time-of-our-lives-a-rwby-quest.99223/]
add_to_replace_metadata:
 title=>^.*$=>Correct Title(with) stuff in (parans) in
 tagsfromtitle=>^.*$=>
[storyUrl] section and add_to_ will make sure these are the last replacement patterns.
JimmXinu is offline   Reply With Quote
Old 10-12-2022, 01:14 PM   #7596
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,983
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: Are there any improvements to this regex? It's intended to remove "Day ##:" from various October challenge fics.

Code:
## Removing 'Day ##:' from titles
 title=>^Day \d+: =>
I suppose I might need to change it in the future if I see dashes or some other punctuation used in place of colons.

Last edited by ownedbycats; 10-12-2022 at 01:16 PM.
ownedbycats is offline   Reply With Quote
Old 10-12-2022, 02:41 PM   #7597
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Without a sample set to work from, who knows?

You could use ^Day ?\d+[ \.;:-]* and add more separator chars as you may find them. Remember to keep - last so it doesn't indicate a character range.
JimmXinu is offline   Reply With Quote
Old 10-13-2022, 03:43 PM   #7598
ipaqi
Junior Member
ipaqi began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2022
Device: Kindle Android App
JimmXinu, I'm following the flaresolverr progress regarding the new way Cloudflare broke it.

Here's the github thread if you care: https://github.com/FlareSolverr/FlareSolverr/issues/536

Anyway, issue is, the only version of flaresolverr that has any workaround right now is the new v3 beta (written in python). It seems to work fine, at least with single page requests, but FFF doesn't seem to be able to read the output properly.

Here's the two relevant bits from the output from FRv3beta2 with the workaround from the linked thread above:

Moderator Notice

Excessively long tech data removed by power of mod -- Jim


Hopefully you can do something with this, if not for right now, then for support once v3 is out of beta

Last edited by JimmXinu; 10-13-2022 at 10:11 PM. Reason: Excessively long tech data
ipaqi is offline   Reply With Quote
Old 10-13-2022, 04:03 PM   #7599
ipaqi
Junior Member
ipaqi began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2022
Device: Kindle Android App
Hi, JimmXinu, I've been following the flaresolverr developments regarding the new way cloudflare broke it.

Here's the github thread if it interests you:
https://github.com/FlareSolverr/FlareSolverr/issues/536

Anyway, it looks like with the workaround posted in the thread, the code returns the output properly, but for some reason FFF isn't reading it properly -- the log is this:
Status: Error
Title: Unknown
Author: Unknown
Comment: 'expires'
URL: https://www.fanfiction.net/s/3145203/1/The-End

I'm attaching the jsons I pulled from fiddler for this request so you can look into it. If there's anything I can do on my own as a workaround or a way to change the response structure on my local clone of the code, I'd appreciate you telling me, although I won't be able to change anything actually committed to the github.

Also, on a related note -- since the workaround just skips the internal challenge resolution and changes it to a time.sleep(5), that probably will only work for the initial few requests - is there a way to get FFF to wait, say 120 seconds every 10 chapters?
Attached Files
File Type: txt flaresolverr_sample_request.json.txt (133 Bytes, 121 views)
File Type: txt flaresolverr_sample_response.json.txt (62.2 KB, 125 views)
ipaqi is offline   Reply With Quote
Old 10-13-2022, 10:21 PM   #7600
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
ipaqi - Please don't post large logs inline like your first post. I edited it for you.

I don't have a current linux install handy to test the flaresolverr beta docker with.

If you run Calibre & FFF in debug mode (under the Calibre Prefs drop down) and post the debug log from that, I might be able to figure something out.
JimmXinu is offline   Reply With Quote
Old 10-14-2022, 02:19 AM   #7601
ipaqi
Junior Member
ipaqi began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2022
Device: Kindle Android App
Quote:
Originally Posted by JimmXinu View Post
ipaqi - Please don't post large logs inline like your first post. I edited it for you.

I don't have a current linux install handy to test the flaresolverr beta docker with.

If you run Calibre & FFF in debug mode (under the Calibre Prefs drop down) and post the debug log from that, I might be able to figure something out.
Here, attached. Note that I have also posted just after the message you had to edit (sorry about that, btw) with the request and response bodies as I cought them in Telerik Fiddler. This log is from today, but it's the same request and should be roughly the same body of the response (barring, obviously, date fields).

If you really need the request, response and the debug log from the same call, I'll be able to provide those, too.

Note that the log has two FFF calls, the first one is without flaresolverr activated in FFF (not on purpose, I was just messing around a bit more yesterday), and the second is with flaresolverr activated.
Attached Files
File Type: txt flaresolverr_v3_calibre_debug_log.txt (10.4 KB, 114 views)
ipaqi is offline   Reply With Quote
Old 10-14-2022, 10:34 AM   #7602
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2022-10-14
- Fix site name fanfiction.tenhawkpresents.ink
- Flaresolverr v3 beta using 'expiry' cookie key, was 'expires'.

ipaqi - It looks like your flaresolverr beta has changed the expiration time key for cookies from 'expires' to 'expiry'. This test version will accept either.

Searching the flaresolverr repo doesn't find any mention of such a change, so it may be something underlying that changed.
JimmXinu is offline   Reply With Quote
Old 10-14-2022, 11:11 AM   #7603
ipaqi
Junior Member
ipaqi began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2022
Device: Kindle Android App
Quote:
Originally Posted by JimmXinu View Post
New Test Version Posted

2022-10-14
- Fix site name fanfiction.tenhawkpresents.ink
- Flaresolverr v3 beta using 'expiry' cookie key, was 'expires'.

ipaqi - It looks like your flaresolverr beta has changed the expiration time key for cookies from 'expires' to 'expiry'. This test version will accept either.

Searching the flaresolverr repo doesn't find any mention of such a change, so it may be something underlying that changed.
Well, the v3 is a completely new codebase written in python vs the previous node.js code, so it might be missing documentation, or you didn't switch to the v3 beta branch in the repo view.

Regardless, thank you very much.
ipaqi is offline   Reply With Quote
Old 10-14-2022, 11:29 AM   #7604
ipaqi
Junior Member
ipaqi began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2022
Device: Kindle Android App
Regrettably, it looks like the fix didn't fix enough. The job now fails with Error message "content-type", which I have to imagine you were pulling from the headers field in the return object. Request and response objects haven't changed.

Apparently the headers and userAgent fields have been deprecated. Can you work with that or do you need any of that info to be passed through some way to FFF?

From the new V1RequestBase constructor:
Quote:
headers: list = None # deprecated v2.0.0, not used
userAgent: str = None # deprecated v2.0.0, not used
ipaqi is offline   Reply With Quote
Old 10-14-2022, 11:53 AM   #7605
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2022-10-14
- Fix site name fanfiction.tenhawkpresents.ink
- Flaresolverr v3 beta using 'expiry' cookie key, was 'expires'.
- Flaresolverr v3 beta doesn't have 'headers'??


FFF looks in resp.json['solution']['headers']['content-type'] for type 'image' for dealing with FSv1 supporting images vs v2 not supporting images.

At the time FSv2 came out, users wanted continued support in FFF for FSv1 specifically for images. I don't know if anyone still does.

This change by-passes that check if 'headers' or 'content-type' don't exist. Hopefully that won't be a problem.
JimmXinu 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 11:29 AM.


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