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 09-08-2024, 04:54 PM   #9901
julo
Connoisseur
julo began at the beginning.
 
Posts: 72
Karma: 12
Join Date: Apr 2010
Location: Pittsburgh area
Device: prs-505,900,T2
add tags to title page

Is there a way to add tags to Titlepage for FineStories, SciFiStories, etc?
For score this works
Quote:
add_to_titlepage_entries:,score
but neither
Quote:
add_to_titlepage_entries:,score,tags
nor
Quote:
add_to_titlepage_entries:,score
add_to_titlepage_entries:,tags
works for tags.
Is it possible and, if so, what are the magic characters?

Last edited by julo; 09-08-2024 at 04:56 PM.
julo is offline   Reply With Quote
Old 09-08-2024, 05:23 PM   #9902
Clem2605
Connoisseur
Clem2605 began at the beginning.
 
Posts: 60
Karma: 10
Join Date: May 2020
Device: Kobo H2O, Kobo Libra H2O, Boox Tab Ultra C
While updating my fanfictions I'm getting an unknown error for a few of them:

Code:
bad escape (end of pattern) at position 4
I'm wondering what it means?

I've been heavily playing with my personal.ini lately, but since the error only appears half consistently, I don't think it's the problem?

(By half consistently, I mean that as far as I can see, 4 of my stories always have an error when I try to update, but around 15 others have brought it up once on the 3 times I tried to update them)

Last edited by Clem2605; 09-08-2024 at 05:24 PM. Reason: forgot a word
Clem2605 is offline   Reply With Quote
Old 09-08-2024, 05:52 PM   #9903
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,217
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by julo View Post
Is there a way to add tags to Titlepage for FineStories, SciFiStories, etc?
For score this works
but neither
norworks for tags.
Is it possible and, if so, what are the magic characters?
Try sitetags not just 'tags'.

Quote:
Originally Posted by Clem2605 View Post
While updating my fanfictions I'm getting an unknown error for a few of them:

Code:
bad escape (end of pattern) at position 4
I'm wondering what it means?
Maybe it's a regexp issue? Run in debug mode, try again, view the log. Post the debug log here if you need help reading it.
JimmXinu is offline   Reply With Quote
Old 09-08-2024, 06:35 PM   #9904
Clem2605
Connoisseur
Clem2605 began at the beginning.
 
Posts: 60
Karma: 10
Join Date: May 2020
Device: Kobo H2O, Kobo Libra H2O, Boox Tab Ultra C
Quote:
Originally Posted by JimmXinu View Post
Try sitetags not just 'tags'.


Maybe it's a regexp issue? Run in debug mode, try again, view the log. Post the debug log here if you need help reading it.
...

Turns out that, if you forget to escape the '\' in the output, everything breaks...

(in my defense, it is rather hard to read bug reports when the position is also initialized after every '=>')

Thank you!
Clem2605 is offline   Reply With Quote
Old 09-08-2024, 09:41 PM   #9905
julo
Connoisseur
julo began at the beginning.
 
Posts: 72
Karma: 12
Join Date: Apr 2010
Location: Pittsburgh area
Device: prs-505,900,T2
Quote:
Originally Posted by JimmXinu View Post
Try sitetags not just 'tags'.
Thank you; that works. Add to the wiki?

Last edited by julo; 09-09-2024 at 09:41 AM.
julo is offline   Reply With Quote
Old 09-09-2024, 03:43 PM   #9906
sable
Member
sable began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Aug 2024
Device: kobo clara bw
Would it be possible to add the release date of a chapter to the chapter title/bookmark?
sable is offline   Reply With Quote
Old 09-09-2024, 04:16 PM   #9907
sable
Member
sable began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Aug 2024
Device: kobo clara bw
I presume I can add it to chapter_title_def_pattern in my personal.ini, but don't know the right variable name (or if the variable even exists)...
sable is offline   Reply With Quote
Old 09-09-2024, 09:26 PM   #9908
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,217
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
There are only a few sites that have dates on chapters FFF can read. Notably, AO3 and Xenforo forum sites (SB/SV).

Search in defaults.ini for tocpage_entry to see which sites support what additional data items.

It's been a while since it was last discussed.
JimmXinu is offline   Reply With Quote
Old 09-10-2024, 07:40 AM   #9909
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,440
Karma: 81407381
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Out of curiosity, when updating multiple fics, does FFF do any prioritization, or do them in the same order as listed?
ownedbycats is offline   Reply With Quote
Old 09-10-2024, 08:02 AM   #9910
sable
Member
sable began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Aug 2024
Device: kobo clara bw
The job got stuck and in the log I found an exception. I made an issue on the github repo: https://github.com/JimmXinu/FanFicFare/issues/1105
sable is offline   Reply With Quote
Old 09-10-2024, 10:31 AM   #9911
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,217
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
Out of curiosity, when updating multiple fics, does FFF do any prioritization, or do them in the same order as listed?
If updating a list of selected books in your library, the order given will be used.

When getting URLs from emails, a set() is used to remove duplicates. I believe Python's set() returns them in an 'undefined' order.

When giving a list of URLs, I believe the order is used.

In all cases, when it gets to the background job, a parallel job is launched for each different site in the list so stories from different sites can download simultaneously.
JimmXinu is offline   Reply With Quote
Old 09-10-2024, 04:32 PM   #9912
Homer55
Connoisseur
Homer55 began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Aug 2016
Device: Kobo
Hi!, I'm encountering some trouble with xenforo and tags.
This is the normal code that I had have for some time:
Quote:
[base_xenforoforum]
include_in_category:category,tagsfromtitle,parentf orums
Category=>genre,tagsfromtitle
skip_threadmarks_categories:Staff Post
order_threadmarks_by_date:true
I have a custom column called "Fandom" and I have in the custom columns settings that "Category" should fill the "fandom" column. When downloading the following story: https://forums.spacebattles.com/thre...solid.1110955/
the title and "fandom"column are as follow:

Title: Magical Espionage Action
Fandom: Harry Potter, Metal Gear, Metal Gear Solid, Wizarding World

wanting to clean the "fandom" column I added the following to the bottom of the previous code
Quote:
add_to_replace_metadata:
(Harry Potter|Wizarding World)=>HP
(Metal Gear|Metal Gear Solid)=>Metal Gear
And wanting to see if I did this correctly, I downloaded the story again and now the title and fandom column looks as follow:

Title: Magical Espionage Action (HP/Metal Gear Solid)
Fandom: HP, Magical Espionage Action (HP/Metal Gear Solid), Magical Espionage Action (HP/Metal Gear Solid)), Metal Gear, Metal Gear Solid

the same thing happened when downloading other stories that I tried to clean for example a story from QQ (NSFW link removed--JimmXinu as mod) was changed to:[NSFW]Tech is harder than diamonds (SU) and the fandom was:[NSFW]Tech is harder than diamonds (SU) (yes the same as the title)

So either I'm doing something wrong, or there is a bug in the code.
Hope someone can help me and thanks!

Edit: I realized that just having "add_to_replace_metadata:" even without anything under it (I noticed because I forgot to comment it) causes this except nothing gets replaced, which is to be expected seeing as no replacement tags were indicated.

Last edited by JimmXinu; 09-10-2024 at 06:10 PM. Reason: Remove NSFW link
Homer55 is offline   Reply With Quote
Old 09-10-2024, 06:49 PM   #9913
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,217
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Homer55 View Post
Hi!, I'm encountering some trouble with xenforo and tags.
There's several different things going on here.

First

As given, this is broken:
Code:
[base_xenforoforum]
include_in_category:category,tagsfromtitle,parentf orums
 Category=>genre,tagsfromtitle
skip_threadmarks_categories:Staff Post
order_threadmarks_by_date:true
I'll assume the space in "parentf orums" is an artifact of copy/paste, but "Category=>genre,tagsfromtitle" isn't valid there.

Maybe you wanted something like:
Code:
[base_xenforoforum]
include_in_category:category,tagsfromtitle,parentforums,genre

## or maybe:
add_to_include_in_category:,genre
(For issues the Second thru Fourth)

You posted:
Code:
# section [base_xenforoforum] assumed
add_to_replace_metadata:
 (Harry Potter|Wizarding World)=>HP
 (Metal Gear|Metal Gear Solid)=>Metal Gear
I instead suggest:
Code:
[base_xenforoforum:epub] 
add_to_replace_metadata:
 category=>^(Harry Potter|Wizarding World)$=>HP
 category=>^Metal Gear Solid$=>Metal Gear
Second

add_to_replace_metadata under [base_xenforoforum] in personal.ini replaces add_to_replace_metadata under [base_xenforoforum] in defaults.ini. See wiki page and search for "another non-intuitive complication".

[base_xenforoforum] is unique in FFF's default.ini for having a bunch of processing in add_to_replace_metadata for tagsfromtitle. The alternative was a hard coded processing.

Alternatives include putting your add_to_replace_metadata under [base_xenforoforum:epub], or the individual site sections, or [defaults] in personal.ini.

Third

In the same code sample, you're applying those lines to all metadata entries, such as characters and description. It would be better, IMO, to limit them to the category entries you're trying to fix.

And use ^ and $ to only apply them when it's the whole entry. Otherwise, a few months from now you're left wondering why "Wizarding World War II" is becoming "HP War II" or whatever.

Fourth

(Metal Gear|Metal Gear Solid) matches the string "Metal Gear Solid", replaces the Metal Gear part -- with "Metal Gear" and leaves the " Solid", yielding... "Metal Gear Solid". Just remove that part of the regex. You don't need to replace "Metal Gear" with "Metal Gear" anyway.

I expect your QQ issues come from the add_to_replace_metadata problem.

I removed your NSFW link, BTW. Please use PM when you can't use a SFW link to demonstrate a problem.
JimmXinu is offline   Reply With Quote
Old 09-10-2024, 07:20 PM   #9914
Homer55
Connoisseur
Homer55 began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Aug 2016
Device: Kobo
Quote:
Originally Posted by JimmXinu View Post
And use ^ and $ to only apply them when it's the whole entry.
does this means that this will apply only when the tag is for example "Wizarding World" but not if the tag is "Wizarding Worlds"?

Also, there's a fic that get's tagged as "Saga Of Tanya The Evil, Tanya the Evil (Sort-of), Tanya the evil" tanya the evil get's repeated three times. something like

Quote:
category=>^ (Saga Of Tanya The Evil|Tanya the Evil \(Sort-of\)|Tanya the evil)$=>Youjo Senki
would be fine? I ask becuase of the multiple tanya's there

Quote:
Originally Posted by JimmXinu View Post
I removed your NSFW link, BTW. Please use PM when you can't use a SFW link to demonstrate a problem.
my bad, the fic is also on SB so I thought it was fine. sorry.

Thanks for your detailed response. I'll try your suggestions

Last edited by Homer55; 09-10-2024 at 07:48 PM.
Homer55 is offline   Reply With Quote
Old 09-10-2024, 08:49 PM   #9915
Nickname
Junior Member
Nickname began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2024
Device: Web
Is there a way to add series[0] to existing anthologies in Calibre ?
I found the option to add it to "New Anthologies", but have not figured out what I need to do to make it happen to ones I already have....

Also : is there a way to make an anthology from the CLI, or is it a plugin option only ?
Nickname 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 12:16 AM.


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