Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 09-10-2024, 06:49 PM   #9916
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,596
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
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   #9917
Homer55
Enthusiast
Homer55 began at the beginning.
 
Posts: 42
Karma: 10
Join Date: Aug 2016
Device: Kindle
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   #9918
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
Old 09-10-2024, 09:19 PM   #9919
John Maverick
Connoisseur
John Maverick began at the beginning.
 
Posts: 56
Karma: 10
Join Date: Oct 2018
Device: none
Outlook.com will stop accepting basic auth starting from 16/09/2024

I have received this email in my @hotmail.com mail.

Quote:
Update your sign-in technology before September 16th, 2024 to maintain email access.

The safety and security of your information is top priority for Microsoft. To help keep your account secure, Microsoft will no longer support the use of third-party email and calendar apps which ask you to sign in with only your Microsoft Account username and password. To keep you safe you will need to use a mail or calendar app which supports Microsoft's modern authentication methods. If you do not act, your third-party email apps will no longer be able to access your Outlook.com, Hotmail or Live.com email address on September 16th.
Would this affect FFF getting links from emails? I use this email to get notifications of updates of fics I follow.

Can something be done to still getting the fics urls from email?

If not, what email provider can recommend me that will work with FFF auth?

As always,thanks in advance.
John Maverick is offline   Reply With Quote
Old 09-10-2024, 09:57 PM   #9920
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,596
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Multi-reply

Regex

Quote:
Originally Posted by Homer55 View Post
does this means that this will apply only when the tag is for example "Wizarding World" but not if the tag is "Wizarding Worlds"?
Correct.

Quote:
Originally Posted by Homer55 View Post
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

Code:
 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
Yes, but you have a space right after ^ that matters in regexp.

You could generalize it to something like:
Code:
 category=>(?i)^.*Tanya The Evil.*$=>Youjo Senki
# (?i) means ignore case and must be at the very start
And it's better to use [code] tags instead of [quote] tags for code sections. I put your code back in--the site discards nested quotes when quoting to reply. FYI.

Series for Anthologies

Quote:
Originally Posted by Nickname View Post
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....
Not with FFF. But because FFF uses the series name for the anthology title, you can copy it to the Series column. This also removes ' Anthology' from it.

A quick search found this old post that explains how. Except you'd want:

Search Mode: Regular Expression
Search Field: title
Search for: (.*) Anthology
Replace with: \1
Destination Field: series

Quote:
Originally Posted by Nickname View Post
Also : is there a way to make an anthology from the CLI, or is it a plugin option only ?
Plugin only. My general assumption is CLI users can use epubmerge.py to merge their own anthologies.

Email

Quote:
Originally Posted by John Maverick View Post
I have received this email in my @hotmail.com mail.
Other people have reported problems using Microsoft / Outlook also.

I've never used it with any service but Gmail. Gmail started requiring 2FA, but gave an option called Google App Passwords for unique-per-app passwords.

One user reported success switching to mail.gmx.com. I know nothing about it.
JimmXinu is offline   Reply With Quote
Old 09-10-2024, 10:02 PM   #9921
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: 9,577
Karma: 64960983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
If you use Mozilla Thunderbird, it's possible to drag-and-drop the emails into the 'download from URLs' window. (I seem to vaguely recall dragging onto the FFF toolbar button also should work, but it doesn't for me.)
ownedbycats is offline   Reply With Quote
Old 09-10-2024, 10:13 PM   #9922
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,596
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by ownedbycats View Post
If you use Mozilla Thunderbird, it's possible to drag-and-drop the emails into the 'download from URLs' window. (I seem to vaguely recall dragging onto the FFF toolbar button also should work, but it doesn't for me.)
It works for me intermittently on Win10. Dragging around in circles on the button a couple times will usually get it work. Kovid said it was a Qt issue.
JimmXinu is offline   Reply With Quote
Old 09-11-2024, 09:27 AM   #9923
kagekarasu
Junior Member
kagekarasu began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2021
Device: calibre
hello, i got this error will trying to update a fic from fanfiction.net:
"
Browser Cache Failed to Load with error 'Python int too large to convert to C long'
https://www.fanfiction.net/s/7207791/1/From-Fake-Dreams "
what do i do?
kagekarasu is offline   Reply With Quote
Old 09-11-2024, 11:06 AM   #9924
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,596
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
I was able to download that using all three versions of BrowserCache -- I don't think it's the FFF code.

BrowserCache

You can try the usual things:
  • Clear your browser cache
  • Manually downloading each chapter
  • Turn on open_pages_in_browser:true
  • Turn on continue_on_chapter_error:true
JimmXinu is offline   Reply With Quote
Old 09-11-2024, 11:50 AM   #9925
kagekarasu
Junior Member
kagekarasu began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2021
Device: calibre
thanks, open_pages_in_browser:true was the one that fixed it.
kagekarasu is offline   Reply With Quote
Old 09-12-2024, 03:59 PM   #9926
Clem2605
Enthusiast
Clem2605 began at the beginning.
 
Posts: 37
Karma: 10
Join Date: May 2020
Device: Kobo H2O, Kobo Libra H2O, Boox Tab Ultra C
So, I have been trying to find a solution to a problem that I have:

I find that, often, the freeform tags on AO3, while a nightmare to use as an organization tool, are a very good complement to the description.
This is why, if I want to keep heavily trimming them down via 'replace_metada' for my tag column, I would also like to find a way to add them, untouched, to the description.

Since, to my understanding, there is no way of adding them to the description before replace_metadata does its thing, I was thinking of doing it in two times:
1) Download the stories and put the freeform tags in the description with no heavy 'tag management' in my replace_metadata (just deleting useless tags like 'Translation in ... available' etc...)
2) Add the 'Tag Management' part of my replace_metadata to my personal.ini and run an update from the saved metadata column to re-populate my Tag column.

I have two questions:

1) How do I add the content of the freeform tags to my description? Would
Code:
include_in_description:
work, or is there another way? (is it even possible?)

2) Does someone have a better idea?
Clem2605 is offline   Reply With Quote
Old 09-12-2024, 06:27 PM   #9927
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,596
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by Clem2605 View Post
I find that, often, the freeform tags on AO3, while a nightmare to use as an organization tool, are a very good complement to the description.
This is why, if I want to keep heavily trimming them down via 'replace_metada' for my tag column, I would also like to find a way to add them, untouched, to the description.

Since, to my understanding, there is no way of adding them to the description before replace_metadata does its thing, ...
On the contrary, there is a way to do that.

But it was designed for list entries, so it's not quite perfect for add to description.
Code:
# keep description, then freeformtags without replace or in/exclude processing.
include_in_description:description,freeformtags.NOREPL

# description is now a 'list' as far as FFF is concerned.
# keep in order, or else they will be alphabetized.
# Depending on Calibre custom column type, freeformtags may be 
# order in library, too.
keep_in_order_description:true
keep_in_order_freeformtags:true

# Optionally include this to remove the comma(,) between description 
# and freeformtags *and* each entry in freeformtags when in description.
# Doesn't affect commas in the actual description text. \s = space
join_string_description:\s
JimmXinu is offline   Reply With Quote
Old 09-12-2024, 07:06 PM   #9928
Clem2605
Enthusiast
Clem2605 began at the beginning.
 
Posts: 37
Karma: 10
Join Date: May 2020
Device: Kobo H2O, Kobo Libra H2O, Boox Tab Ultra C
Quote:
Originally Posted by JimmXinu View Post
On the contrary, there is a way to do that.
Thank you!! I must've gotten something confused when trying to understand how it worked.

Quote:
Originally Posted by JimmXinu View Post
Code:
# keep description, then freeformtags without replace or in/exclude processing.
include_in_description:description,freeformtags.NOREPL

# description is now a 'list' as far as FFF is concerned.
# keep in order, or else they will be alphabetized.
# Depending on Calibre custom column type, freeformtags may be 
# order in library, too.
keep_in_order_description:true
keep_in_order_freeformtags:true

# Optionally include this to remove the comma(,) between description 
# and freeformtags *and* each entry in freeformtags when in description.
# Doesn't affect commas in the actual description text. \s = space
join_string_description:\s
But when I try this, without modifying anything, it just gives me an empty comment field...
Clem2605 is offline   Reply With Quote
Old 09-12-2024, 09:02 PM   #9929
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,596
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by Clem2605 View Post
But when I try this, without modifying anything, it just gives me an empty comment field...
Works for me.

I assume you know to put it under [archiveofourown.org]
JimmXinu is offline   Reply With Quote
Old 09-13-2024, 05:41 AM   #9930
Clem2605
Enthusiast
Clem2605 began at the beginning.
 
Posts: 37
Karma: 10
Join Date: May 2020
Device: Kobo H2O, Kobo Libra H2O, Boox Tab Ultra C
Quote:
Originally Posted by JimmXinu View Post
Works for me.

I assume you know to put it under [archiveofourown.org]
Yes, it's under the AO3 section ^^!

So after further tests, it seems to work well when adding stories, but when I try to update from the saved metadata, everything gets erased.

I can't see why it would work in one case and not the other...?

Last edited by Clem2605; 09-13-2024 at 05:47 AM.
Clem2605 is offline   Reply With Quote
Reply

Tags
fanfiction

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 495 10-19-2024 07:06 AM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 09:39 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 04:59 AM.


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