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, 03:02 PM   #8716
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: 38
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, 03:14 PM   #8717
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: 7,305
Karma: 5007213
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
Old 07-24-2023, 05:18 PM   #8718
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: 38
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, 02:11 AM   #8719
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: 136
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, 01:04 PM   #8720
applegaa
Connoisseur
applegaa has learned how to buy an e-book online
 
applegaa's Avatar
 
Posts: 81
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, 02:59 PM   #8721
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: 7,305
Karma: 5007213
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, 06:16 PM   #8722
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,577
Karma: 81412473
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, 06:48 PM   #8723
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: 7,305
Karma: 5007213
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, 06:49 PM   #8724
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, 07:00 PM   #8725
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: 7,305
Karma: 5007213
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, 07:15 PM   #8726
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, 07:20 PM   #8727
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: 7,305
Karma: 5007213
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:	150
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 07:23 PM.
JimmXinu is offline   Reply With Quote
Old 07-25-2023, 07:33 PM   #8728
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
Not for me it doesn't:
Attachment 202819

EDIT: I do see a 'Mark for Later' button on squidgeworld.org
Oh that's weird, this is what I see on my AO3.
Attached Thumbnails
Click image for larger version

Name:	IMG-8947.PNG
Views:	123
Size:	739.3 KB
ID:	202820   Click image for larger version

Name:	IMG-8948.PNG
Views:	94
Size:	744.3 KB
ID:	202821   Click image for larger version

Name:	IMG-8949.PNG
Views:	95
Size:	717.3 KB
ID:	202822  
Emerald_Lilies is offline   Reply With Quote
Old 07-25-2023, 07:56 PM   #8729
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: 7,305
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2023-07-25
- Add title replace_metadata(commented) for literotica Ch/Pt titles
- AO3: Add subscribed, markedforlater

I found it. This AO3 FAQ implies (but doesn't outright state) that 'Mark for Later' is a 'History' feature that doesn't appear if you have 'Turn on History' unchecked in your Preferences.
JimmXinu is offline   Reply With Quote
Old 07-25-2023, 09:00 PM   #8730
applegaa
Connoisseur
applegaa has learned how to buy an e-book online
 
applegaa's Avatar
 
Posts: 81
Karma: 76
Join Date: Apr 2019
Device: none
Quote:
Originally Posted by JimmXinu View Post
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.
I apologize. I did a lot of digging into the actual adapter code, including uncommenting a bunch of logger.debug lines, only to finally understand what you said before...

I misunderstood how it was getting the title, thinking it was pulling it from the first chapter rather than the series heading on the submissions page. So, I was correct on what the bug is, but was wrong about where the bug is. It's too consistent to be author error, so it must be a bug in Literotica's code.

Thanks for the suggestion on how to work around it. I'll give that a try!

- Andrew
applegaa is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Open With kiwidude Plugins 405 02-09-2026 08:54 AM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 529 01-28-2026 11:32 AM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 01:48 PM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 07:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 09:18 AM.


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