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 07-25-2021, 03:06 AM   #6271
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
I've managed to separate the entries. The original tags appear on the epub's titlepage. However, the prefixed copies aren't being added to Calibre for some reason.

I did something like this:
Code:
[archiveofourown.org]
add_to_valid_entries:,prefix_ships,prefix_category,prefix_rating,prefix_status

include_in_prefix_ships:ships
include_in_prefix_category:category
include_in_prefix_rating:rating
include_in_prefix_status:status

replace_metadata:
 # other regex I do for cleaning up the tags
 prefix_ships: other stuff
 # then I put the prefix last, can't tell if this expression is correct since it won't show up in Calibre's tag database.
 prefix_ships=>(.*)=>p\: \1

include_subject_tags: prefix_ships,prefix_category,prefix_rating,prefix_status
culytera is offline   Reply With Quote
Old 07-25-2021, 10:17 AM   #6272
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,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by culytera View Post
...
Code:
[archiveofourown.org]
add_to_valid_entries:,prefix_ships,prefix_category,prefix_rating,prefix_status
...
It's: add_to_extra_valid_entries, not add_to_valid_entries.

Yes, the naming is inconsistent with other settings; I wasn't thinking about that when it was made.

You can temporarily add new entries to titlepage_entries while troubleshooting. Personally, I use the CLI and -m a lot for that sort of thing.
JimmXinu is offline   Reply With Quote
Advert
Old 07-25-2021, 12:25 PM   #6273
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
Quote:
Originally Posted by JimmXinu View Post
It's: add_to_extra_valid_entries, not add_to_valid_entries.
...
Yes that got it to work, at least for category, status and rating, I'm not sure why the relationship tags aren't getting added since they have the same expression in replace_metadata. Commented the previous expressions I used for a few pairings so they aren't included in the subject tags anymore, thought that would fix it but they're still not added to Calibre. I'm not familiar with using the command line version, but I could try to figure that out.
Code:
 prefix_ships=>^(.*)=>p: \1
 prefix_category=>^(.*)=>c: \1
 prefix_rating=>^(.*)=>r: \1
 prefix_status=>^(.*)=>s: \1
culytera is offline   Reply With Quote
Old 07-25-2021, 01:04 PM   #6274
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,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
No idea. I'd have to see your personal.ini and the story URL(s) in question.
JimmXinu is offline   Reply With Quote
Old 07-26-2021, 01:22 AM   #6275
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
I found out the issue. I forgot to add a leading comma.

I also had the issue of a lone p: getting added to the tags, but I fixed it by putting the add prefix expression first, then put a ^(p: ) on all the expressions I had for removing some relationship tags.

Code:
[archiveofourown.org]
keep_in_order_characters:true
keep_in_order_ships:true
keep_in_order_freeformtags:true
keep_in_order_ao3categories:true
keep_in_order_genre:true

add_to_extra_valid_entries:,prefix_ships,prefix_category,prefix_rating,prefix_status

include_in_prefix_ships:ships
include_in_prefix_category:category
include_in_prefix_rating:rating
include_in_prefix_status:status

replace_metadata:
 prefix_ships=>^(.*)=>p: \1
 prefix_ships=>^(p: ).* - Relationship=>
 prefix_ships=>^(p: ).* - Fandom=>
 prefix_ships=>^(p: )Minor or Background Relationship(\(s\))?=>
 prefix_ships=>^(p: ).* (\()?(implied|mentioned)(\))?=>
 prefix_ships=>^(p: )(.*)&(.*)=>
 prefix_ships=>^(p: )Eventual (.*)/(.*)=>
 prefix_category=>^(.*)=>c: \1
 prefix_rating=>^(.*)=>r: \1
 prefix_status=>^(.*)=>s: \1

#ships, category, rating, status
include_subject_tags:prefix_ships,prefix_category,prefix_rating,prefix_status
Thanks for all the help!
culytera is offline   Reply With Quote
Advert
Old 07-26-2021, 06:02 AM   #6276
danmeian
Member
danmeian began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2021
Device: Windows 11
Fandom (Category) custom column

Hi,

I'm pretty new to Calibre, so please excuse my clumsiness with this!

I'm trying to set up a fandom (or category) column; I think that i have followed the steps instructed in previous threads and comments, and couldn't figure out why my column isn't filled.

Screenshots: https://imgur.com/a/CTMRnT1

The personal.ini setting:

Code:
extra_valid_entries:fandoms, freeformtags, freefromtags,
 ao3categories, comments, chapterslashtotal, chapterstotal, kudos,
 hits, bookmarks, collections, byline, bookmarked, bookmarktags,
 bookmarksummary, bookmarkprivate, bookmarkrec, restricted, series00,
 series01, series02, series03, series00Url, series01Url, series02Url,
 series03Url, series00HTML, series01HTML, series02HTML, series03HTML
fandoms_label:Fandoms
freeformtags_label:Freeform Tags
freefromtags_label:Freeform Tags
ao3categories_label:AO3 Categories
comments_label:Comments
chapterslashtotal_label:Chapters/Total Chapters
chapterstotal_label:Total Chapters
kudos_label:Kudos
hits_label:Hits
collections_label:Collections
## Count of bookmarks on story by all users
bookmarks_label:Bookmarks
## Tags & Summary from *your* bookmark on the story.  Only collected
## if always_login:true
bookmarked_label:I Bookmarked Story
bookmarktags_label:My Bookmark Tags
bookmarksummary_label:My Bookmark Summary
bookmarkprivate_label:My Bookmark Private
bookmarkrec_label:My Bookmark Rec
restricted_label:Restricted to Registered Users
series00HTML_label:Series
series01HTML_label:Additional Series
series02HTML_label:Additional Series
series03HTML_label:Additional Series
Code:
custom_columns_settings:
cliches=>#acolumn
themes=>#bcolumn,a
timeline=>#ccolumn,n
"FanFiction"=>#collection
averrating=>#averrating,r_anthaver
fandom=>#fandoms, n
danmeian is offline   Reply With Quote
Old 07-26-2021, 12:41 PM   #6277
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,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by danmeian View Post
I'm trying to set up a fandom (or category) column; I think that i have followed the steps instructed in previous threads and comments, and couldn't figure out why my column isn't filled.
Your screen shots show that you are configured to fill your Fandoms column with Category and errors. Error column comes afterward, so it will overwrite your column with an empty string when there are no errors.

Create a different column, preferably Long Text, for recording errors.

You don't need both the GUI custom column setting and custom_columns_settings. custom_columns_settings is generally for when you want more control, such as only using some columns with some sites.

And, BTW, each line after custom_columns_settings needs to be indented by 1 space to work.
JimmXinu is offline   Reply With Quote
Old 07-26-2021, 06:08 PM   #6278
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,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2021-07-26
- Shift adapter_fictionmaniatv to http, problems with https server?
JimmXinu is offline   Reply With Quote
Old 07-27-2021, 12:15 AM   #6279
danmeian
Member
danmeian began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2021
Device: Windows 11
Quote:
Originally Posted by JimmXinu View Post
Your screen shots show that you are configured to fill your Fandoms column with Category and errors. Error column comes afterward, so it will overwrite your column with an empty string when there are no errors.

Create a different column, preferably Long Text, for recording errors.

You don't need both the GUI custom column setting and custom_columns_settings. custom_columns_settings is generally for when you want more control, such as only using some columns with some sites.

And, BTW, each line after custom_columns_settings needs to be indented by 1 space to work.
Thanks for the quick response! I removed the custom_columns_settings portion and added an Error column as you suggested.

Screenshots: https://imgur.com/a/iSf96sI

How should I proceed from here?
danmeian is offline   Reply With Quote
Old 07-27-2021, 05:49 AM   #6280
danmeian
Member
danmeian began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2021
Device: Windows 11
Quote:
Originally Posted by danmeian View Post
Thanks for the quick response! I removed the custom_columns_settings portion and added an Error column as you suggested.

Screenshots: https://imgur.com/a/iSf96sI

How should I proceed from here?
Update: Just realized that it works on newly-added stories. I'm not sure how to fill the column for stories already in the library?
The metadata is already there.
danmeian is offline   Reply With Quote
Old 07-27-2021, 01:49 PM   #6281
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,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by danmeian View Post
Update: Just realized that it works on newly-added stories. I'm not sure how to fill the column for stories already in the library?
The metadata is already there.
FFF only updates columns on downloads/updates.

If you created and configured a 'Saved Metadata Column' you can do 'Update Calibre Metadata from Saved Metadata Column'.

Otherwise, you will have to do 'Update Calibre Metadata from Web Site'. But I would suggest creating and configuring a 'Saved Metadata Column' first.
JimmXinu is offline   Reply With Quote
Old 07-27-2021, 04:04 PM   #6282
kamille3
Connoisseur
kamille3 began at the beginning.
 
Posts: 50
Karma: 10
Join Date: Jul 2021
Device: None
Literotica stories downloaded with FFF adds the "Fanfiction" tag alongside the category tag (Romance, Mature etc) already assinged by Literotica. Any way to make FFF assign Lit tags only? Currently I have to manually delete the fanfiction tag.
kamille3 is offline   Reply With Quote
Old 07-27-2021, 04:21 PM   #6283
chrnno
Connoisseur
chrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with others
 
Posts: 50
Karma: 2652
Join Date: Jan 2014
Device: Samsung Galaxy J2
Quote:
Originally Posted by kamille3 View Post
Literotica stories downloaded with FFF adds the "Fanfiction" tag alongside the category tag (Romance, Mature etc) already assinged by Literotica. Any way to make FFF assign Lit tags only? Currently I have to manually delete the fanfiction tag.
Add under literotica in personal.ini "extratags:" like this:
Code:
[literotica.com]
extratags:
Or if you want it tagged as Original Fiction then this:
Code:
[literotica.com]
extratags:Original Fiction
chrnno is offline   Reply With Quote
Old 07-27-2021, 05:44 PM   #6284
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,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Following the precedent of mcstories.com, I will add this to defaults.ini in the next version:
Code:
[literotica.com]
#...
## Clear FanFiction from defaults, site is original fiction.
extratags:Erotica
JimmXinu is offline   Reply With Quote
Old 07-27-2021, 10:45 PM   #6285
jessbbaby34
Junior Member
jessbbaby34 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2021
Device: Android Tablet
OK so.. I don't know how I broke things but I seem to have broke things and don't know where to look to fix it. A few months ago I added several stories with FFF just fine and the tags used by the sites imported correctly.

I tried adding new stories today and none of the site-used tags are showing up. And this is from two different sources I checked (Literotica and BDSM Library). I have since tried:

Updating calibre, I was running 5.17 and am now up to 5.23. I updated the fanficfare plugin since it seemed it needed an update too (didn't note what version but it was up to date as of May) and have even tried uninstalling and re-installing the plugin. I have not changed any *.ini file, I can not find a check box I might have hit that would do this, I have no rules removing metadata of new books, I don't know where to keep looking.

It was working at the end of may, fast forward to now and it's not working and I can't find out why. If you need any more details let me know but honestly I don't know which stats are even important for solving this problem.
jessbbaby34 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 05:58 AM.


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