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-16-2024, 03:09 AM   #9286
veviara
Junior Member
veviara began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2021
Device: Kobo Libra 2
Thank you! That was exactly what I was looking for!

I'm unfamiliar with test versions of plugins and sadly do not have the time to look into it until sunday, but the workaround works like a charm.

Not many people using the log feature would explain why I had such a hard time googling the answers to my questions! I think it's a really nice detail, and I'm very excited to see the logs on my fics evolve.
veviara is offline   Reply With Quote
Old 02-16-2024, 03:56 AM   #9287
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
You just need to get it from the second post of the thread. Download the zip file -> open Calibre -> go to Preferences -> under Advanced go to Plugins -> choose Load plugin from file -> look for the zip file you downloaded and select it.
culytera is offline   Reply With Quote
Old 02-18-2024, 01:16 PM   #9288
Wolgan
Enthusiast
Wolgan began at the beginning.
 
Wolgan's Avatar
 
Posts: 31
Karma: 18
Join Date: Jun 2017
Device: Kindle Fire
Literotica Tag Gathering issue (or user error)?

When I use use_meta_keywords: true under [literotica.com] combined with either include_subject_tags: eroticatags or extra_subject_tags: eroticatags to download multi-chapter stories from literotica it only applies the tags from the first chapter to Tags.

All the chapter tags are listed in the Saved Metadata column though, so when I use "Update Calibre Metadata from Saved Metadata Column", it applies all the tags from all chapters to Tags correctly.

I have an admittedly overly complicated personal.ini, so to validate, I created a new test library and stripped my personal.ini down to just the following (copied from plugin settings verbatim). It made no difference and the behavior was unchanged.

Code:
[defaults]
is_adult:true

[literotica.com]
include_subject_tags: eroticatags
use_meta_keywords: true
Is this a bug, or am I misunderstanding the expected behavior of include_subject_tags or use_meta_keywords? If it's a bug, I'll get a bug report written up.

edit to add: To test I grabbed a new story I'd never downloaded before that had different tags in each chapter, REMOVED, but this behavior applies to any multi-chapter story on literotica.
Moderator Notice

MR doesn't like NSFW URLs. You can PM them to me when needed. Story URL removed.

Last edited by JimmXinu; 02-18-2024 at 02:53 PM. Reason: Remove NSFW URL
Wolgan is offline   Reply With Quote
Old 02-18-2024, 03:51 PM   #9289
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,991
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2024-02-18
- Set book[tags] after writeStory for literotica.

Quote:
Originally Posted by Wolgan View Post
When I use use_meta_keywords: true under [literotica.com] combined with either include_subject_tags: eroticatags or extra_subject_tags: eroticatags to download multi-chapter stories from literotica it only applies the tags from the first chapter to Tags.

All the chapter tags are listed in the Saved Metadata column though, so when I use "Update Calibre Metadata from Saved Metadata Column", it applies all the tags from all chapters to Tags correctly.
...
As a general rule, FFF expects all the metadata info to be collected during the initial extractChapterUrlsAndMetadata(). I'm honestly a bit surprised I allowed adding metadata from getChapterText().

This version works during full-story downloading.

But be aware: During update, only the tags on the chapters downloaded that time will be included. So be sure you have the 'Keep Existing Tags when Updating Metadata?' checkbox set if you plan to do updates.
JimmXinu is online now   Reply With Quote
Old 02-18-2024, 06:47 PM   #9290
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,991
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2024-02-18
- Set book[tags] after writeStory for literotica.
- New site: syosetu.com Japanese language site, thanks praschke
JimmXinu is online now   Reply With Quote
Old 02-18-2024, 11:28 PM   #9291
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
New Test Version Posted

2024-02-18
- Set book[tags] after writeStory for literotica.
- New site: syosetu.com Japanese language site, thanks praschke
I just downloaded the latest test version, but the adapter_literotica.py file has a 2/5/2024 10:36 AM time stamp, which would appear to match the earlier change to it. I haven't tested it yet, but was wondering if you forget to include the new one?

- Andrew
applegaa is offline   Reply With Quote
Old 02-19-2024, 10:47 AM   #9292
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,991
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by applegaa View Post
I just downloaded the latest test version, but the adapter_literotica.py file has a 2/5/2024 10:36 AM time stamp, which would appear to match the earlier change to it. I haven't tested it yet, but was wondering if you forget to include the new one?
Nothing in adapter_literotica changed since then.

If you're referring to Set book[tags] after writeStory for literotica, that only changes calibre-plugin/jobs.py.
JimmXinu is online now   Reply With Quote
Old 02-19-2024, 01:33 PM   #9293
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
Nothing in adapter_literotica changed since then.

If you're referring to Set book[tags] after writeStory for literotica, that only changes calibre-plugin/jobs.py.
Ah, my mistake. Thanks for the explanation and all the work you do!

- Andrew
applegaa is offline   Reply With Quote
Old 02-20-2024, 06:48 AM   #9294
w4tchdoge
Enthusiast
w4tchdoge began at the beginning.
 
w4tchdoge's Avatar
 
Posts: 29
Karma: 10
Join Date: Jul 2023
Device: Calibre
Question Issues with using parentheses in the replace string of replace_metadata

I'm trying to use replace_metadata to change the title for a specific work but I'm having issues when using parentheses in the replace string.

I started with
Code:
[https://forums.spacebattles.com/threads/853195/]
replace_metadata:
 title=>^.*$=>Here Comes The New Boss - SB
Which works fine and gives this as the title but that's not the final output I want.

When I try to add text within parentheses to the replace string like this:
Code:
[https://forums.spacebattles.com/threads/853195/]
replace_metadata:
 title=>^.*$=>Here Comes The New Boss (Nothing Like The Old Boss) - SB
I get the following:


Escaping the parentheses like so:
Code:
title=>^.*$=>Here Comes The New Boss \(Nothing Like The Old Boss\) - SB
just adds a space and a backslash before "SB"

I'd appreciate any help/advice you can give me, as I'm kinda stumped at this point.
w4tchdoge is offline   Reply With Quote
Old 02-20-2024, 09:26 AM   #9295
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
If it’s anything like ampersand needing & try their HTML entity code instead. So ( and )
culytera is offline   Reply With Quote
Old 02-20-2024, 10:40 AM   #9296
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,991
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by w4tchdoge View Post
I'm trying to use replace_metadata to change the title for a specific work but I'm having issues when using parentheses in the replace string.
...
Code:
[https://forums.spacebattles.com/threads/853195/]
replace_metadata:
 title=>^.*$=>Here Comes The New Boss (Nothing Like The Old Boss) - SB
This is an artifact of the tagsfromtitles processing in defaults.ini [base_xenforoforum] section. It looks for whatever is in () in the title and adds it to category instead.

However, if you use add_to_replace_metadata instead of replace_metadata, it will work because add_to_ is added afterwards instead.

Quote:
Originally Posted by culytera View Post
If it’s anything like ampersand needing & try their HTML entity code instead. So ( and )
That doesn't work, sorry.
JimmXinu is online now   Reply With Quote
Old 02-20-2024, 01:39 PM   #9297
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
Whoops, didn’t know that!
culytera is offline   Reply With Quote
Old 02-20-2024, 08:16 PM   #9298
Mandabar
Fanfiction Devourer
Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.
 
Posts: 47
Karma: 539564
Join Date: Nov 2012
Device: Android: Moon+ Reader Pro
Quote:
Originally Posted by JimmXinu View Post
I think this may be the first time I've heard of anyone--other than me--using the log file feature.
Just so you know, I use it as well. I haven't customized it so it just runs on defaults though.

Side note, it doesn't work on QQ. My theory is because it doesn't parse in-progress/completed or what not for QQ it doesn't create a log page for a story that isn't 'in-progress'/'ongoing' or etc. No biggie, just something I've noticed.
Mandabar is offline   Reply With Quote
Old 02-20-2024, 08:55 PM   #9299
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,991
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Mandabar View Post
Just so you know, I use it as well. I haven't customized it so it just runs on defaults though.

Side note, it doesn't work on QQ. My theory is because it doesn't parse in-progress/completed or what not for QQ it doesn't create a log page for a story that isn't 'in-progress'/'ongoing' or etc. No biggie, just something I've noticed.
Good to know, thanks.

That sounds like you have include_logpage: smart set:
Code:
## include a Update Log page before the story text.  If 'true', the
## log will be updated each time the epub is and all the metadata
## fields that have changed since the last update (typically
## dateUpdated,numChapters,numWords at a minimum) will be shown.
## Great for tracking when chapters came out and when the description,
## etc changed.
include_logpage: false
## If set to 'smart', logpage will only be included if the story is
## status:In-Progress or already had a logpage.  That way you don't
## end up with Completed stories that have just one logpage entry.
#include_logpage: smart
Personally, I use this to turn it on all the time for forum sites:
Code:
[epub]
include_logpage: smart

[base_xenforoforum:epub]
include_logpage: true
JimmXinu is online now   Reply With Quote
Old 02-21-2024, 04:54 AM   #9300
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
This is an artifact of the tagsfromtitles processing in defaults.ini [base_xenforoforum] section. It looks for whatever is in () in the title and adds it to category instead.

However, if you use add_to_replace_metadata instead of replace_metadata, it will work because add_to_ is added afterwards instead.
Thanks for that, it works now!
w4tchdoge 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 03:49 PM.


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