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-04-2021, 03:58 AM   #5356
FiendfyreSnake
Member
FiendfyreSnake began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2021
Location: West Coast Canada
Device: None
Alright I'll just mark the problematic ones with a temporary tag then and do it over several days. Thank you for all your help.
FiendfyreSnake is offline   Reply With Quote
Old 02-04-2021, 04:05 AM   #5357
FiendfyreSnake
Member
FiendfyreSnake began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2021
Location: West Coast Canada
Device: None
One last question, how where you editing your replies so long after posting them? I could only edit mine within 5 minutes of posting it?
FiendfyreSnake is offline   Reply With Quote
Advert
Old 02-04-2021, 04:16 AM   #5358
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: 10,994
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
glad I could help.

Last edited by ownedbycats; 02-04-2021 at 04:23 AM.
ownedbycats is offline   Reply With Quote
Old 02-04-2021, 04:36 AM   #5359
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: 10,994
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Also, as expected, it did result in some weird behaviour on crossovers: it added both prefixes to all the characters. Any idea how to handle this?

This is my best idea so far:

Code:
characterlist=>(Character1|Character2)=>Fandom1.\1&&category==Crossover
characterlist=>(Character3|Character4)=>Fandom2.\1&&category==Crossover
EDIT: I made it worse!

Click image for larger version

Name:	2021-02-04 05_51_37-Manage items_ Characters.png
Views:	351
Size:	9.7 KB
ID:	185218

Last edited by ownedbycats; 02-04-2021 at 05:10 AM.
ownedbycats is offline   Reply With Quote
Old 02-04-2021, 11:20 AM   #5360
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by FiendfyreSnake View Post
One last question, how where you editing your replies so long after posting them? I could only edit mine within 5 minutes of posting it?
"New" users (those with fewer than some, unknown number of posts) are restricted on edits and prevented from using PMs.

So just keep doing what you can and eventually it will automatically change.
JimmXinu is offline   Reply With Quote
Advert
Old 02-04-2021, 01:56 PM   #5361
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: 10,994
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by ownedbycats View Post
Also, as expected, it did result in some weird behaviour on crossovers: it added both prefixes to all the characters. Any idea how to handle this?

This is my best idea so far:

Code:
characterlist=>(Character1|Character2)=>Fandom1.\1&&category==Crossover
characterlist=>(Character3|Character4)=>Fandom2.\1&&category==Crossover
EDIT: I made it worse!

Attachment 185218
I thought that perhaps an exclude metadata would work, but halfway through adding it I realized it would just strip the characters entirely. Still a little stumped.

I guess I could just set the column as new only and manually sort it out.

EDIT: For now, I just disabled all the prefixes and am focusing on sorting out all the standardization.

Last edited by ownedbycats; 02-04-2021 at 03:23 PM.
ownedbycats is offline   Reply With Quote
Old 02-04-2021, 03:04 PM   #5362
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: 10,994
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by FiendfyreSnake View Post
Could the characterlist work in replace metadata?

Code:
replace_metadata: 
## Fix and standardize your character names first
 characterlist=>Harry P\.=>Harry Potter
 characterlist=>N\. Tonks=>Nymphadora Tonks
It should work fine. However, any standardization done in characterlist won't appear on your title pages, so it depends on wheter you want it to appear there or not.

I consider it good practice to do all the standardization in the original entry, and then pass it onto the Calibre-specific extra entry.

Last edited by ownedbycats; 02-04-2021 at 03:31 PM.
ownedbycats is offline   Reply With Quote
Old 02-04-2021, 03:43 PM   #5363
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2021-02-04
- Add browser_cache_age_limit option
- Add browser cache options to defaults.ini
- Give adapter_archiveofourownorg a get_section_url() for quicker rejects checks from email.


So the very first thing this morning, I did 'update from email' and a story with an update overnight didn't find the new chapter because my browser cache still had that story from yesterday.

Thus, browser_cache_age_limit is added.
Code:
## It's common for browser cached files to be kept for several hours
## or more.  You can limit the age of cached files FFF will use from
## browser_cache_path with browser_cache_age_limit.  Only cached files
## that were downloaded within 'browser_cache_age_limit' hours will be
## used.  If set to -1, all cached files will be used.
browser_cache_age_limit:4.0
Default value of 4.0 hours is pretty arbitrary.

Here are links to the new (plugin)defaults.ini settings:
Please let me know if you find the comments unclear (ideally with suggestions for how to read word them more clearly).
JimmXinu is offline   Reply With Quote
Old 02-04-2021, 03:51 PM   #5364
FiendfyreSnake
Member
FiendfyreSnake began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2021
Location: West Coast Canada
Device: None
Quote:
Originally Posted by ownedbycats View Post
It should work fine. However, any standardization done in characterlist won't appear on your title pages, so it depends on wheter you want it to appear there or not.

I consider it good practice to do all the standardization in the original entry, and then pass it onto the Calibre-specific extra entry.
Good point, I noticed that once I tried it. I'm currently setting up some (attempt) at standardization and order for the mess that is AO3's tagging system.

Something I have noticed is that some categories use different names on AO3 vs Fanfiction.net fics. for example pairings are called pairings on download ff.net fics but relationships on downloaded fics from AO3. Any ideas for that?

Last edited by FiendfyreSnake; 02-04-2021 at 03:53 PM.
FiendfyreSnake is offline   Reply With Quote
Old 02-04-2021, 04:01 PM   #5365
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: 10,994
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by FiendfyreSnake View Post
Something I have noticed is that some categories use different names on AO3 vs Fanfiction.net fics. for example pairings are called pairings on download ff.net fics but relationships on downloaded fics from AO3. Any ideas for that?
Unless you've been changing the site-specific settings from defaults.ini FFF should remap them both to ships.
ownedbycats is offline   Reply With Quote
Old 02-04-2021, 04:05 PM   #5366
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: 10,994
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Also, if you want to change for one site but not another:

characters=>Character=>Character Lastname&&site==www.fanfiction.net

ought to work.
ownedbycats is offline   Reply With Quote
Old 02-04-2021, 04:10 PM   #5367
FiendfyreSnake
Member
FiendfyreSnake began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2021
Location: West Coast Canada
Device: None
I will definitely look at that that. Looking through the default ini I also found where it is setting pairings from fanfiction.net to be called pairings so I will play around with that.
FiendfyreSnake is offline   Reply With Quote
Old 02-04-2021, 04:12 PM   #5368
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: 10,994
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by FiendfyreSnake View Post
For within replace metadata, yes both are getting remaped to ships. However no renaming/remaping like that has ever happened for me within the downloaded fics title page.
I'm not sure - one thing to check though is that you escaped your characters:
https://github.com/JimmXinu/FanFicFa...eplaceMetadata

Last edited by ownedbycats; 02-04-2021 at 04:17 PM.
ownedbycats is offline   Reply With Quote
Old 02-04-2021, 04:16 PM   #5369
FiendfyreSnake
Member
FiendfyreSnake began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2021
Location: West Coast Canada
Device: None
Quote:
Originally Posted by ownedbycats View Post
Unless you've been changing the site-specific settings from defaults.ini FFF should remap them both to ships.
It looks like by default the ini actually does remap everything not from fanfiction.net to relationships (not ships) and for fanfiction.net it specifically sets them to be called pairings.

In the plugin defualts ini there is this setting:

Code:
ships_label:Relationships
and under

Code:
[www.fanfiction.net]
## ffnet uses 'Pairings', not 'Relationship', stating they don't have
## to be romantic pairings.
ships_label:Pairings

Last edited by FiendfyreSnake; 02-04-2021 at 04:21 PM.
FiendfyreSnake is offline   Reply With Quote
Old 02-04-2021, 05:56 PM   #5370
FiendfyreSnake
Member
FiendfyreSnake began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2021
Location: West Coast Canada
Device: None
Alright so I have another couple of questions:

1. Why does this string clear the calibre tags column with an otherwise blank pesonal ini?

*edit* this fic works for both questions: https://archiveofourown.org/works/17926664
Code:
add_to_extra_valid_entries:,blanklist
#uses the blank "blanklist" extra valid entry to somehow remove everything else from the calibre tags catagory"
#this is what I want but I have no idea why it works
include_subject_tags:blanklist
Background:
Spoiler:
I was trying to find out what this did
Quote:
Originally Posted by ownedbycats View Post
Unfortunately, hierarchicals in replace_metadata does affect the title page; I'm still finding fics labeled as "Fanfiction.Mass Effect."

However, it may be possible to use add_to_extra_valid_entries & include_in_entryname to accomplish what you want. I use it to remap categories to a few broad tags:

Code:
# 'add_to_' concats on to existing param, thus the leading comma
add_to_extra_valid_entries:,tagscategory,

# tagscategory is a copy category for Fanfiction.category in tags
include_in_tagscategory:category
include_subject_tags: tagscategory
Specifically this line:
Code:
include_subject_tags: tagscategory
I noticed it used the extra_valid_entry you had in your demo there so i pointed it at a random on of mine and saw that it completely cleared the tags column in calibre except for whatever was included in the "extra_valid_entry" so I made yet another one and purposely didn't include anything in it and it quite nicely cleared the column completely. I am super happy with that result and can definitely do some interesting things with it but I just want to know why it happens.

TLDR

Using this code in an otherwise clean personal ini completely clears the tags category in calibre. It works great for my purposes but am unsure why it happens.
Code:
add_to_extra_valid_entries:,blanklist
#uses the blank "blanklist" extra valid entry to somehow remove everything else from the calibre tags category"
#this is what I want but I have no idea why it happens
include_subject_tags:blanklist


2. I'm trying to automatically sort genres out of the multitude of random tags from ao3 and am unsure what to do.

I have two "add_to_extra_valid_entries:" called genrelist and extratagslist. Both work and are setup to send tags into appropriate custom columns. How would I set it up so that only a specific list of genre tags (ex humor,adventure,action,fantasy,drama) stay in the "genrelist" and everything not matching goes to "extratagslist"?

Spoiler:
Code:
#this creates the "extra_valid_entries"
add_to_extra_valid_entries:,extratagslist,genrelist


#this adds everything from extratags and genre to both extra_valid_entries
include_in_extratagslist:genre,extratags
include_in_genrelist:genre,extratags


replace_metadata:
#No idea what would have to go here


custom_columns_settings:
#send extratagslist data to #extratags custom column  
 extratagslist=>#extratags

#send genrelist data to #genre custom column  
 genrelist=>#genre
What would I do so only a certain list of words stay in genrelist and everything except those specific words stay in extratagslist?

Last edited by FiendfyreSnake; 02-04-2021 at 06:00 PM.
FiendfyreSnake 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 12:00 AM.


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