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-24-2023, 12:04 PM   #8716
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 culytera View Post
For example, I want "Dragon Age" to be kept when *Inquisition/Origins/II aren't one of the entries as well. If one of those 3 exists, I want "Dragon Age" excluded from the list. I've tested something similar with Mass Effect and Mass Effect: Andromeda/Mass Effect Trilogy and for some reason, my regex worked with Mass Effect but not Dragon Age. Here are the tests (long image).
I'm a bit less familiar with Dragon Age, but if there's characters that only appear in certain games, something like this might also be useful for you. (ffnet and some pre-Andromeda AO3 stories have just a 'Mass Effect' category.)

Code:
replace_metadata: 
 category=>^Mass Effect$=>Mass Effect: Andromeda&&characters=~(Ryder|Jaal Ama Darav)
 category=>^Mass Effect$=>Mass Effect Trilogy&&characters=~(Shepard|Normandy Crew)
I don't think you can use a category conditional on a category replace though. I'm not sure why, perhaps to prevent accidental recursive loops.
ownedbycats is offline   Reply With Quote
Old 07-24-2023, 12:57 PM   #8717
booster-t
Enthusiast
booster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it is
 
booster-t's Avatar
 
Posts: 32
Karma: 2464
Join Date: Dec 2020
Location: Vancouver, Canada
Device: iPad, Mac Mini M4 Pro
Quote:
Originally Posted by JimmXinu View Post
Some people just have troubles sometimes. There's an FAQ about it.
I followed the instructions — cleared the cache (actually deleted it) and now consistently get this response to any attempt to update:

HTTP Error in FFF '403 Client Error: Forbidden for url: https://www.fanfiction.net/s/1420059...-Veil'(403)

In the FWIW department, the line Browser_cache_path: ~/Library/Caches/Google/Chrome/Default/Cache/Cache_Data has the words Browser_cache_path in red

Stephen
booster-t is offline   Reply With Quote
Advert
Old 07-24-2023, 01:00 PM   #8718
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 booster-t View Post
I followed the instructions — cleared the cache (actually deleted it) and now consistently get this response to any attempt to update:

HTTP Error in FFF '403 Client Error: Forbidden for url: https://www.fanfiction.net/s/1420059...-Veil'(403)

In the FWIW department, the line Browser_cache_path: ~/Library/Caches/Google/Chrome/Default/Cache/Cache_Data has the words Browser_cache_path in red
That suggests your setting isn't correct. For one thing, it's browser_cache_path--all lowercase.

FYI, if you set use_browser_cache_only:true for [www.fanfiction.net] it will only use cache.
JimmXinu is offline   Reply With Quote
Old 07-24-2023, 02:02 PM   #8719
booster-t
Enthusiast
booster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it is
 
booster-t's Avatar
 
Posts: 32
Karma: 2464
Join Date: Dec 2020
Location: Vancouver, Canada
Device: iPad, Mac Mini M4 Pro
Quote:
Originally Posted by JimmXinu View Post
That suggests your setting isn't correct. For one thing, it's browser_cache_path--all lowercase.

FYI, if you set use_browser_cache_only:true for [www.fanfiction.net] it will only use cache.
Thanks for noticing that -- I didn't realize capitalization mattered :-)

I did try one more thing. I turned off my VPN, cleared my Chrome cache, and restarted. That seemed to do the trick and things are working normally. I will turn the VPN back on and see if it messes things up again. If it does, then at least I know what the issue is. I am using NordVPN with Threat Protection on. It may be this latter option that is at fault. I'll update this thread once I see what happens.

Stehen
booster-t is offline   Reply With Quote
Old 07-24-2023, 02:14 PM   #8720
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
Yeah, VPNs mess up many things. You are on your when VPNs are involved.
JimmXinu is offline   Reply With Quote
Advert
Old 07-24-2023, 04:18 PM   #8721
booster-t
Enthusiast
booster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it is
 
booster-t's Avatar
 
Posts: 32
Karma: 2464
Join Date: Dec 2020
Location: Vancouver, Canada
Device: iPad, Mac Mini M4 Pro
Quote:
Originally Posted by JimmXinu View Post
Yeah, VPNs mess up many things. You are on your when VPNs are involved.
Yup ... it's the VPN. Turn it off, clear the cache, reload pages and bob's your uncle. <sigh>

Stephen
booster-t is offline   Reply With Quote
Old 07-25-2023, 01:11 AM   #8722
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
FYI, I personally consider trying to normalize AO3 tags a lost cause. I'll help with individual issues that can be articulated and tested, but I'm not interested in it in general.

In this case, you can't use use category_LIST in conditionals for category, that would recurse.
Yeah I'm just gonna trust (and hope) that the author properly tags the fic in the right order. I normally don't read fics that have overly complicated tags anyway.

Quote:
Originally Posted by ownedbycats View Post
I don't think you can use a category conditional on a category replace though. I'm not sure why, perhaps to prevent accidental recursive loops.
Right I forgot about that, I think I tried to do something similar before but couldn't figure it out either back then. This was just to reduce redundancy in the title page. At least my tag browser will look cleaner now thanks to _LIST being allowed in subject tags.

Now I'll just do:
- Find "Inquisition/II/Origins" & "Andromeda/Trilogy" among Dragon Age & Mass Effect category entries
- If found, ignore "Dragon Age" & "Mass Effect" as the main category and get the first accepted entry as the main category
- If not found, use "Dragon Age" & "Mass Effect" as the main category for the tag browser

Seemed to work well!
Relevant code:
Spoiler:
Code:
replace_metadata:
 category=> (- All Media Types|- Fandom|\(Movies\)|\(Movie [0-9]+\)|\(Comics\)|\(TV\)|\(Video Games?\))$=>
 prefix_category=>^(.*?)$=>[c] \1
## Accept only Dragon Age: Inquisition/Dragon Age II/Dragon Age: Origins for prefix_category if Dragon Age is also one of the categories
 prefix_category_LIST=>(\[c\] Dragon Age\,\s?)\[c\] Dragon Age(:? (Inquisition|II|Origins))=>[c] Dragon Age\2
 prefix_category_LIST=>(\[c\] Mass Effect\,\s?)\[c\] Mass Effect(:? (Trilogy|Andromeda))=>[c] Mass Effect\2
## Get the first category entry for tag browser
 prefix_category_LIST=>^(\[c\].*?)(\,.*)=>\1

## first ship, first category, rating, status with the added prefixes in Calibre's tags
include_subject_tags:prefix_ships_LIST,prefix_category_LIST,prefix_rating,prefix_status,prefix_wordcount
culytera is offline   Reply With Quote
Old 07-25-2023, 12:04 PM   #8723
applegaa
Connoisseur
applegaa has learned how to buy an e-book online
 
applegaa's Avatar
 
Posts: 70
Karma: 76
Join Date: Apr 2019
Device: none
Quote:
Originally Posted by JimmXinu View Post
2023-07-08
- adapter_literotica: 'Fix' clean_chapter_titles for titles ending with Pt or Ch

I've elected to address applegaa's issue with option 3. I also added a Fixing Literotica Titles ending in Ch or Pt section to the MetadataManagement wiki page.
I think I've figured out when the adapter removes the Ch or Pt and when it leaves it.

If the title includes a subtitle after the chapter number, it removes the period, chapter number, and subtitle while leaving the "Ch" or "Pt" as part of the title. If there is no subtitle, it removes the "Ch" or "Pt" along with the period and chapter number.

I'll send you some example links via direct message.

- Andrew
applegaa is offline   Reply With Quote
Old 07-25-2023, 01:59 PM   #8724
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 got the PM--I think I see what you're talking about.

But I'm not sure what you want me to do about it. Honestly, I think it's on the site (or the authors?) to fix that.

You can fix it yourself for your downloads with:
Code:
[literotica.com]
add_to_replace_metadata:
 title=> (Ch|Pt)$=>
I hesitate to put that in defaults.ini because if you have a add_to_replace_metadata setting under [literotica.com] in personal.ini, the defaults.ini version will be ignored.
JimmXinu is offline   Reply With Quote
Old 07-25-2023, 05:16 PM   #8725
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
Perhaps as a commented-out section so that the user needs to enable it.
ownedbycats is offline   Reply With Quote
Old 07-25-2023, 05:48 PM   #8726
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
Not a bad idea. https://github.com/JimmXinu/FanFicFa...6a094f91f29d36
JimmXinu is offline   Reply With Quote
Old 07-25-2023, 05:49 PM   #8727
Emerald_Lilies
Junior Member
Emerald_Lilies began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2022
Device: none
When downloading from AO3, is there any metadata downloaded for the Mark for Later and Subscribe options (like there is for the Bookmark options)? Or does anyone know a way to get that info? I'm hoping to add custom columns to be able to filter by fics I have marked to be read and fics that I'm subscribed to.
Emerald_Lilies is offline   Reply With Quote
Old 07-25-2023, 06:00 PM   #8728
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 Emerald_Lilies View Post
When downloading from AO3, is there any metadata downloaded for the Mark for Later and Subscribe options (like there is for the Bookmark options)? Or does anyone know a way to get that info? I'm hoping to add custom columns to be able to filter by fics I have marked to be read and fics that I'm subscribed to.
I suppose a site specific metadata entry for 'subscribed' could be added by looking for the 'Unsubscribe' button. It would only be collected with always_login:true and only for a story(Work) subscription--not author/series subs.

I don't know what "Mark for Later" means--that's not something I'm seeing on the AO3 site.
JimmXinu is offline   Reply With Quote
Old 07-25-2023, 06:15 PM   #8729
Emerald_Lilies
Junior Member
Emerald_Lilies began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2022
Device: none
Quote:
Originally Posted by JimmXinu View Post
I suppose a site specific metadata entry for 'subscribed' could be added by looking for the 'Unsubscribe' button. It would only be collected with always_login:true and only for a story(Work) subscription--not author/series subs.

I don't know what "Mark for Later" means--that's not something I'm seeing on the AO3 site.
Individual story subscription data was really what I was hoping for, I figured author and series subscriptions wouldn't be doable.

"Mark for Later" is an option AO3 has at the top of individual works (where the Entire Work, Next Chapter, Subscribe, Comment, Share, Download, etc. buttons are). It's probably only there if you're signed in I think? Clicking on it changes is to "Mark as Read" and adds the work to a "Marked for Later" list in your "My History" section.
Emerald_Lilies is offline   Reply With Quote
Old 07-25-2023, 06:20 PM   #8730
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 Emerald_Lilies View Post
"Mark for Later" is an option AO3 has at the top of individual works (where the Entire Work, Next Chapter, Subscribe, Comment, Share, Download, etc. buttons are). It's probably only there if you're signed in I think? Clicking on it changes is to "Mark as Read" and adds the work to a "Marked for Later" list in your "My History" section.
Not for me it doesn't:
Click image for larger version

Name:	Capture.PNG
Views:	138
Size:	38.3 KB
ID:	202819

EDIT: I do see a 'Mark for Later' button on squidgeworld.org

Last edited by JimmXinu; 07-25-2023 at 06:23 PM.
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 09:22 AM.


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