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-18-2024, 04:51 PM   #9286
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,198
Karma: 5006097
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 offline   Reply With Quote
Old 02-18-2024, 07:47 PM   #9287
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,198
Karma: 5006097
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 offline   Reply With Quote
Advert
Old 02-19-2024, 12:28 AM   #9288
applegaa
Connoisseur
applegaa has learned how to buy an e-book online
 
applegaa's Avatar
 
Posts: 77
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, 11:47 AM   #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: 7,198
Karma: 5006097
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 offline   Reply With Quote
Old 02-19-2024, 02:33 PM   #9290
applegaa
Connoisseur
applegaa has learned how to buy an e-book online
 
applegaa's Avatar
 
Posts: 77
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
Advert
Old 02-20-2024, 07:48 AM   #9291
w4tchdoge
Enthusiast
w4tchdoge began at the beginning.
 
w4tchdoge's Avatar
 
Posts: 30
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, 10:26 AM   #9292
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: 135
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, 11:40 AM   #9293
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,198
Karma: 5006097
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 offline   Reply With Quote
Old 02-20-2024, 02:39 PM   #9294
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: 135
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Whoops, didn’t know that!
culytera is offline   Reply With Quote
Old 02-20-2024, 09:16 PM   #9295
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: 50
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, 09:55 PM   #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: 7,198
Karma: 5006097
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 offline   Reply With Quote
Old 02-21-2024, 05:54 AM   #9297
w4tchdoge
Enthusiast
w4tchdoge began at the beginning.
 
w4tchdoge's Avatar
 
Posts: 30
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
Old 02-21-2024, 10:50 AM   #9298
veviara
Junior Member
veviara began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Dec 2021
Device: Kobo Libra 2
Quote:
Originally Posted by veviara View Post
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 quite sunday, but I have now tested the test and it also works like a charm! (And was a lot easier than I feared). New questions!
  • Are there any best practices regarding test versions? Should I comment somewhere specific that I tested it? Better not comment at all?
  • Will updating the plugin continue to work as I'm used to now that I've installed it as a zip file? Or should I do that manually? (I figure I'll find out eventually, but I would like to know now )

In other news, I'm back with a new problem!

On AO3, when a fic is locked and users have to log in in order to view the fic: I can put login credentials in the personal.ini file and download the story anyway. Works great, no problem there. However, if I have hide warnings/tags by default on in my AO3 settings fanficfare will not download tags / warnings for that fic or any other fic downloaded in that same job. (Presumably the same is true for work skins but I haven't found a story to test that). When there is no locked fic included in the job, there are no issues.

Is this a known problem? Is there anything I can do to circumvent it? (Besides changing my settings, that is).
veviara is offline   Reply With Quote
Old 02-21-2024, 11:18 AM   #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: 7,198
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by veviara View Post
Not quite sunday, but I have now tested the test and it also works like a charm! (And was a lot easier than I feared). New questions!
  • Are there any best practices regarding test versions? Should I comment somewhere specific that I tested it? Better not comment at all?
  • Will updating the plugin continue to work as I'm used to now that I've installed it as a zip file? Or should I do that manually? (I figure I'll find out eventually, but I would like to know now )
When test version was posted for something you asked for, I appreciate a post back reporting that it worked.

Each test version has a different 'micro' number in the major.minor.micro scheme, eg v4.31.6 is the sixth test version of v4.31. When I release v4.32.0 (usually at the start of each month) Calibre will prompt you to install it as normal.
Quote:
Originally Posted by veviara View Post
On AO3, when a fic is locked and users have to log in in order to view the fic: I can put login credentials in the personal.ini file and download the story anyway. Works great, no problem there. However, if I have hide warnings/tags by default on in my AO3 settings fanficfare will not download tags / warnings for that fic or any other fic downloaded in that same job. (Presumably the same is true for work skins but I haven't found a story to test that). When there is no locked fic included in the job, there are no issues.

Is this a known problem? Is there anything I can do to circumvent it? (Besides changing my settings, that is).
Known issue.

From defaults.ini:
Spoiler:
Code:
[archiveofourown.org]
## Some sites require login (or login for some rated stories) The
## program can prompt you, or you can save it in config.  In
## commandline version, this should go in your personal.ini, not
## defaults.ini.
#username:YourName
#password:yourpassword

## Note that if 'Hide warnings' and/or 'Hide Additional Tags' are
## enabled in the account settings, the AO3 adapter will not be able
## to fetch them while logged-in.

## In order to get bookmarktags and bookmarksummary, you need to login
## all the time.  This defaults to off to save time and network
## traffic.  Requires valid AO3 username and password when true.
#always_login:false

The basic assumption is that if you hide warnings/add tags, you won't want them in your download, either. And for login-required stories the only way to get them would be to change your settings for you--which I don't want to do.
JimmXinu is offline   Reply With Quote
Old 02-21-2024, 11:43 AM   #9300
veviara
Junior Member
veviara began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Dec 2021
Device: Kobo Libra 2
Quote:
Originally Posted by JimmXinu View Post
When test version was posted for something you asked for, I appreciate a post back reporting that it worked.

Each test version has a different 'micro' number in the major.minor.micro scheme, eg v4.31.6 is the sixth test version of v4.31. When I release v4.32.0 (usually at the start of each month) Calibre will prompt you to install it as normal.
Makes perfect sense, thank you.

Quote:
Originally Posted by JimmXinu View Post
Known issue.

From defaults.ini:
Spoiler:
Code:
[archiveofourown.org]
## Some sites require login (or login for some rated stories) The
## program can prompt you, or you can save it in config.  In
## commandline version, this should go in your personal.ini, not
## defaults.ini.
#username:YourName
#password:yourpassword

## Note that if 'Hide warnings' and/or 'Hide Additional Tags' are
## enabled in the account settings, the AO3 adapter will not be able
## to fetch them while logged-in.

## In order to get bookmarktags and bookmarksummary, you need to login
## all the time.  This defaults to off to save time and network
## traffic.  Requires valid AO3 username and password when true.
#always_login:false

The basic assumption is that if you hide warnings/add tags, you won't want them in your download, either. And for login-required stories the only way to get them would be to change your settings for you--which I don't want to do.
Ahh, yeah, okay that makes sense. I think the login options were one of the first things I did and I just never bothered to look it up again because it worked Shame on me, noting that could have saved me quite a few headaches!

In my case I only hide tags/warnings because authors sometimes spoil their own stories in them. But once I've already read the story I find them very valuable in organization and would like to include them in my download of the story. No matter, I see the problems, I'll just change my settings back and forth when downloading
veviara 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 527 08-15-2025 02:36 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 06:42 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 01:36 AM.


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