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 07-21-2023, 08:20 PM   #8686
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by w4tchdoge View Post
I'm sorry if I'm about to ask an obvious question which has already been answered (apologies if it has been answered, but I haven't been able to find it) but I'm currently trying to append "Web Fiction" as a default tag to the tags the FanFicFare plugin writes to the metadata of the file it outputs.
There's an easier way using extratags. The default (for most sites) is extratags: FanFiction, you could:
Code:
# Keep FanFiction from defaults:
[defaults]
add_to_extratags:,Web Fiction

# or set for all sites, replacing both default FanFiction and 
# sites with no extratags set.
[overrides]
extratags:Web Fiction
Quote:
Originally Posted by culytera View Post
You forgot to retrieve the group that matched your regex. It should be:
Code:
 web_fic_tag=>^(.*)=>Web Fiction \1
That would append to every tag. I believe w4tchdoge only wants one additional tag.
JimmXinu is offline   Reply With Quote
Old 07-21-2023, 08:26 PM   #8687
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
Yes I misunderstood their issue.
culytera is offline   Reply With Quote
Old 07-21-2023, 08:39 PM   #8688
w4tchdoge
Enthusiast
w4tchdoge began at the beginning.
 
w4tchdoge's Avatar
 
Posts: 29
Karma: 10
Join Date: Jul 2023
Device: Calibre
Quote:
Originally Posted by JimmXinu View Post
There's an easier way using extratags. The default (for most sites) is extratags: FanFiction, you could:
Code:
# Keep FanFiction from defaults:
[defaults]
add_to_extratags:,Web Fiction

# or set for all sites, replacing both default FanFiction and 
# sites with no extratags set.
[overrides]
extratags:Web Fiction
Thank you very much for your input. I have now gotten my desired behaviour by adding extratags to the defaults in personal.ini like so:
Code:
[defaults]
extratags:Web Fiction
I've done it like this as:
1) FanFiction being in the extratags was not behaviour I wanted
2) I would like to keep open the option of adding site-based extratags

Once again, thank you very much for your help. I would also like to thank you for making this plugin as it is going to make the archival of the works I read into one place where I can easily sort them much easier.
w4tchdoge is offline   Reply With Quote
Old 07-21-2023, 09:02 PM   #8689
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
You're welcome.
Quote:
Originally Posted by w4tchdoge View Post
I've done it like this as:
1) FanFiction being in the extratags was not behaviour I wanted
2) I would like to keep open the option of adding site-based extratags
Just be aware that there are some 15 supported sites that clear or change extratags in defaults.ini and those site section settings take precedence over [defaults] in personal.ini. There's an INI File Wiki page that documents the precedence order. You can search defaults.ini for extratags for which sites.

So you have removed FanFiction, but not guaranteed Web Fiction will always be there, your original stated intent.
JimmXinu is offline   Reply With Quote
Old 07-21-2023, 09:09 PM   #8690
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Sorry, I should have included the solution, too:
Code:
[defaults]
extratags:
add_to_extratags:,Web Fiction
This both clears the [defaults] value and adds Web Fiction.

Or rather, A solution. Due to how add_to_X works, you couldn't easily remove 'Web Fiction' for certain sites.
JimmXinu is offline   Reply With Quote
Old 07-21-2023, 09:12 PM   #8691
w4tchdoge
Enthusiast
w4tchdoge began at the beginning.
 
w4tchdoge's Avatar
 
Posts: 29
Karma: 10
Join Date: Jul 2023
Device: Calibre
Quote:
Originally Posted by JimmXinu View Post
You're welcome.

Just be aware that there are some 15 supported sites that clear or change extratags in defaults.ini and those site section settings take precedence over [defaults] in personal.ini. There's an INI File Wiki page that documents the precedence order. You can search defaults.ini for extratags for which sites.

So you have removed FanFiction, but not guaranteed Web Fiction will always be there, your original stated intent.
Thank you for bringing this to my attention.

Would I be covering all my bases (that is, both always removing "FanFiction" from extratags and always adding "Web Fiction" to extratags) if I were to implement the following code in my personal.ini?

Code:
[defaults]
extratags:

[overrides]
add_to_extratags:,Web Fiction
w4tchdoge is offline   Reply With Quote
Old 07-21-2023, 09:38 PM   #8692
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by w4tchdoge View Post
Would I be covering all my bases (that is, both always removing "FanFiction" from extratags and always adding "Web Fiction" to extratags) if I were to implement the following code in my personal.ini?
Yes.

(Due to how add_to_X works, that is functionally equivalent to what I showed with both lines under [defaults]. The only difference would be order which doesn't matter for Calibre tags--they all get alphabetized.)

You can add additional tags for specific sites the same way, with add_to_extratags under the section for that site.
JimmXinu is offline   Reply With Quote
Old 07-22-2023, 02:56 AM   #8693
ipaqi
Junior Member
ipaqi began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2022
Device: Kindle Android App
Hey, Jimm, something weird with FFF + Flaresolverr happening lately to me, if I try to use FFF to get stories from FF.net and AO3 in the same update, it looks like you're passing the AO3 cookies to Flaresolverr, or at least passing them with the AO3 domain, which causes FF.net to reject the cookie.

I'm attaching the Flaresolverr log, because I'm not sure what else to send you. If you need something from FFF, I can do that, too.
Attached Files
File Type: txt log_20230722_bad_cookie_domain.txt (40.8 KB, 121 views)
ipaqi is offline   Reply With Quote
Old 07-22-2023, 09:55 AM   #8694
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2023-07-22
- AO3 fix for protected email addr in chapter name breaking chapter datetime

Reported over on the FFF google list.
Quote:
https://archiveofourown.org/works/46176928

What an obscure little error.

AO3 doesn't allow authors to put HTML tags in chapter titles (they get escaped automatically), so I thought it was safe to assume the only <span> in chapter title would always be the chapter date.

But apparently the email address protect code can also appear there.

Fixed in posted test version.

FYI, the chapter title causing the issue will appear as "The Gunner's Dream 1.z (supplemental;[email protected],[email protected])". There's nothing FFF can do about that.
JimmXinu is offline   Reply With Quote
Old 07-22-2023, 10:16 AM   #8695
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ipaqi View Post
Hey, Jimm, something weird with FFF + Flaresolverr happening lately to me, if I try to use FFF to get stories from FF.net and AO3 in the same update, it looks like you're passing the AO3 cookies to Flaresolverr, or at least passing them with the AO3 domain, which causes FF.net to reject the cookie.
FFF saves cookies between requests (because cookies) and passes them to flaresolverr because it's the browser / requester in this case.

FFF doesn't isolate cookies between domains because the HTTP library handles it.

Flaresolverr, apparently, does not. I would have expected that to come 'for free' with the headless browser instance.

I'll look into this.
JimmXinu is offline   Reply With Quote
Old 07-22-2023, 10:45 AM   #8696
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Attached is a test (test) version that filters cookies for flaresolverr.

I haven't been able to test it fully myself because Flaresolverr "v3.2.2 (Windows-only hotfix)" trips a trojan warning in Windows defender for me so I'm not using it. And v3.2.1 doesn't appear to work anymore with ffnet.

This can be tested by trying to download/update stories from other sites (AO3, TtH, SB/SV, whatever--everybody uses cookies) before a ffnet story (with flaresolverr configured) in the same download/update.

Debug output would be useful.

EDIT: Nobody said it exploded, so rolled into the usual test version.

Last edited by JimmXinu; 07-23-2023 at 09:21 PM. Reason: Remove obsolete test version
JimmXinu is offline   Reply With Quote
Old 07-22-2023, 11:06 AM   #8697
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: 11,000
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JimmXinu View Post
New Test Version Posted

2023-07-22
- AO3 fix for protected email addr in chapter name breaking chapter datetime

Reported over on the FFF google list.
What does 'breaking chapter datetime' mean? The last-updated date would fail?
ownedbycats is offline   Reply With Quote
Old 07-22-2023, 12:55 PM   #8698
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Complete failure to capture metadata leading to download failure.
Quote:
Status
Title
Author
Comment
URL
Error
Unknown
Unknown
time data 'email\xa0protected' does not match format '%Y-%m-%d'
https://archiveofourown.org/works/46176928
https://groups.google.com/g/fanfic-d...m/emm9HNYoCgAJ
JimmXinu is offline   Reply With Quote
Old 07-22-2023, 05:16 PM   #8699
gand3r
Junior Member
gand3r began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2015
Device: nonewi
no idea if this has been mentioned before, but requests_toolbelt has a problem with incompatibility to >urllib3-2.0.0 which requires an up-to-date version of kfp to fix. after downgrading urllib3 it works again. with the new version fff simply vanished and refused to configure and in debug-mode I get:

Traceback (most recent call last):
File "/home/p/.config/calibre/plugins/FanFicFare.zip/requests_toolbelt/_compat.py", line 48, in <module>
from requests.packages.urllib3.contrib import appengine as gaecontrib
ImportError: cannot import name 'appengine' from 'requests.packages.urllib3.contrib' (/usr/lib/python3.11/site-packages/urllib3/contrib/__init__.py)

During handling of the above exception, another exception occurred:

...

from .. import configurable as configurable
File "/home/p/.config/calibre/plugins/FanFicFare.zip/fanficfare/configurable.py", line 38, in <module>
from . import fetchers
File "/home/p/.config/calibre/plugins/FanFicFare.zip/fanficfare/fetchers/__ini
t__.py", line 19, in <module>
from .fetcher_cloudscraper import CloudScraperFetcher
File "/home/p/.config/calibre/plugins/FanFicFare.zip/fanficfare/fetchers/fetch
er_cloudscraper.py", line 22, in <module>
import cloudscraper
File "/home/p/.config/calibre/plugins/FanFicFare.zip/cloudscraper/__init__.py", line 14, in <module>
from requests_toolbelt.utils import dump
File "/home/p/.config/calibre/plugins/FanFicFare.zip/requests_toolbelt/__init__.py", line 12, in <module>
from .adapters import SSLAdapter, SourceAddressAdapter
File "/home/p/.config/calibre/plugins/FanFicFare.zip/requests_toolbelt/adapters/__init__.py", line 12, in <module>
from .ssl import SSLAdapter
File "/home/p/.config/calibre/plugins/FanFicFare.zip/requests_toolbelt/adapters/ssl.py", line 16, in <module>
from .._compat import poolmanager
File "/home/p/.config/calibre/plugins/FanFicFare.zip/requests_toolbelt/_compat
.py", line 50, in <module>
from urllib3.contrib import appengine as gaecontrib
ImportError: cannot import name 'appengine' from 'urllib3.contrib' (/usr/lib/python3.11/site-packages/urllib3/contrib/__init__.py)
gand3r is offline   Reply With Quote
Old 07-22-2023, 08:35 PM   #8700
julo
Connoisseur
julo began at the beginning.
 
Posts: 72
Karma: 12
Join Date: Apr 2010
Location: Pittsburgh area
Device: prs-505,900,T2
'Shiloh' from SciFiStories does not download with this error
Quote:
Status Error
Title Unknown
Author Unknown
Comment list index out of range
URL https://scifistories.com/s/1029/shiloh
also #8 on:
https://scifistories.com/universe/3/damsels-in-distress

Could it be related since this has two authors they left the author field blank?
julo 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 08:32 AM.


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