![]() |
#8281 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I'll try setting default to a space -- I only want subtitle on selected stories, and Calibre would remove it from the field.
EDIT: How do I set the default value of an entry to a literal? I think include_in only works for copying other entries. ANOTHER EDIT: I think subtitle:" " under [defaults] should work EDIT: It didn't work ![]() Last edited by ownedbycats; 04-02-2023 at 07:06 PM. |
![]() |
![]() |
![]() |
#8282 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Why are you pursuing this when I already gave you the first solution you asked for 2 weeks ago for custom_columns_settings? |
|
![]() |
![]() |
Advert | |
|
![]() |
#8283 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Mostly to see if I could get it to work. I'll put back the cutom column settings.
|
![]() |
![]() |
![]() |
#8284 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Very specific corner-case request. Only bother if it's particularly easy to do or useful for other cases:
The ability to pass column links from the table back into FanFicFare when 'Pass Calibre columns' is enabled. Perhaps called calibre_std_columnname_link. Use-case: I have selected gift/exchange collections (for which URLs are not collected by FFF) included in Series. If links are present in the db, I think using include_metadata (for filtering) and include_in_links I may be able to have them appear on the titlepage. Last edited by ownedbycats; 04-03-2023 at 04:50 PM. |
![]() |
![]() |
![]() |
#8285 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Alternative method:
Should this work? It doesn't, but I'm not sure if there's an error in my implementation or whether this applies as there's no initial seriesUrl: personal.ini, includes other relevant entries: Code:
[archiveofourown.org] add_to_replace_metadata: ## Add seriesUrl to collection series seriesUrl=>^.*=>https://archiveofourown.org/collections/SpecReqs2023&&series==Spectre Requisitions 2023 include_metadata_pre: ## Include specific collections for series collections=~(Spectre Requisitions \d{4}|Spec Recs|Spec Recs \d{4}) ## Copy collections to series include_in_series:series,collections EDIT: To make things even more confusing, there is an effect: It removes the series from the titlepage! (And commenting the line out restores it.) This makes me inclined to think that it is replacing but glitching out. Last edited by ownedbycats; 04-03-2023 at 05:21 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#8286 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
New Test Version Posted
2023-04-03 - Add static include_in_* when double quoted. Eg: Code:
[http://test1.com?sid=5] include_in_seriesUrl:"http://test1.com/NEW" That should solve several of ownedbycats' latest endeavors. Quote:
See static feature above. |
|
![]() |
![]() |
![]() |
#8287 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Question: What order should include_in, replace_metadata, and include_metadata_pre run?
I created a custom entry and set it a placeholder to be transformed and included in seriesUrl. The replacement isn't working as expected. Would be easier than making a dozen story sections... EDIT: Here's the code Code:
[defaults] # Custom metadata entries add_to_extra_valid_entries:,collectionUrl [archiveofourown.org] ## I also tried replacing 'seriesUrl' collectionUrl=>abc=>https://archiveofourown.org/collections/SpecReqs2023&&collection==Spectre Requisitions 2023 ## Generates placeholder collectionUrl include_in_collectionUrl:"abc" ## Copy collectionURL to series include_in_seriesUrl:collectionUrl include_metadata_pre: ## To include placeholder only when there's a collection collectionUrl==abc&&collections==Spectre Requisitions 2023 ![]() EDIT: Another issue though: the placeholder will apply for all books, ignoring the include_metadata. Last edited by ownedbycats; 04-03-2023 at 07:08 PM. |
![]() |
![]() |
![]() |
#8288 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
add_to_extra_valid_entries
include_in_X (in/ex)clude_metadata_pre replace_metadata (in/ex)clude_metadata_post |
![]() |
![]() |
![]() |
#8289 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I found my mistake with the second one: I forgot to include seriesUrl in seriesUrl
![]() I got various problems sorted out and posted my 'complete' version here: https://www.mobileread.com/forums/sh...4&postcount=15 Additional question: When using a replaced value as a conditional in the same replace_metadata block, should I always put it below? As an example: Code:
add_to_replace_metadata: collections=>Mass Effect - N7 Exchange 22=>N7 Exchange 2022 collectionUrl=>abc=>https://archiveofourown.org/collections/MassEffectN7Exchange2022&&collections==N7 Exchange 2022 I also added a small ToC to the MetadataManagement page but I won't be upset if you want to remove it. Last edited by ownedbycats; 04-03-2023 at 11:49 PM. |
![]() |
![]() |
![]() |
#8290 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
For one story (PM'd link as it's adult) I'm having trouble getting rid of the "Mass Effect Big Bang" series without also deleting the "Mass Effect Big Bang 2012" collectiion.
I put the settings in a new library with a fresh personal.ini to check other settings weren't messing with it Code:
[defaults] is_adult:true ## Copy collections to series include_in_series:series,collections include_metadata_pre: collections==Mass Effect Big Bang 2012 Any attempt at exact-matching fails to match (don't know why) and concats the two Code:
exclude_metadata_pre: series==Mass Effect Big Bang series=~Mass Effect Big Bang$ Code:
exclude_metadata_pre: series=~Mass Effect Big Bang series=~Mass Effect Big Bang&&seriesUrl==https://archiveofourown.org/series/xxxx Last edited by ownedbycats; 04-04-2023 at 02:56 AM. |
![]() |
![]() |
![]() |
#8291 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
An entirely different question:
I noticed I still have an extended (5 seconds instead of 2) slow_down_sleep_time for ffnet even though I use cache & open_pages. Is there any reason to keep it? |
![]() |
![]() |
![]() |
#8292 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
AIR, if you are using open_pages_in_browser, slow_down_sleep_time is applied between attempts to open a page in the browser.
|
![]() |
![]() |
![]() |
#8293 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Code:
[archiveofourown.org] include_in_series:series,collections include_metadata_pre: ## Include specific collections as series collections=~(N7 Exchange|N7 Exchange \d{4}) exclude_metadata_pre: series=~\“Everyone wants a spiky girlfriend!\” \(f!Vetryder One Shots\) \[\d\]$ seriesUrl==https://archiveofourown.org/series/28830 add_to_replace_metadata: collections=>Mass Effect - N7 Exchange 22=>N7 Exchange 2022 Since it only affects Calibre metadata it's easy to fix but is this a user error or a bug? Last edited by ownedbycats; 04-04-2023 at 05:04 PM. |
![]() |
![]() |
![]() |
#8294 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
While FFF will allow you to have a series metadata entry without a number, Calibre will not.
To the best of my knowledge, all entries in Calibre's standard Series column or Series type custom columns must have a number. It can be zero, fractional, or even negative, but it will be here. Calibre will automatically use the next open integer if there isn't one in the value given. |
![]() |
![]() |
![]() |
#8295 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Yes. I was expecting it to be set to [1] as that's what I get on the constructed collection-series. Intead, it copied the number from the excluded series.
I thought perhaps the column overwrite wasn't working as expected but clearing it and re-updating resulted in the [5] again. Last edited by ownedbycats; 04-04-2023 at 05:48 PM. |
![]() |
![]() |
![]() |
Tags |
fanfiction |
|
![]() |
||||
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 |