|
|
#8731 | |
|
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jan 2022
Device: none
|
Quote:
|
|
|
|
|
|
|
#8732 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,571
Karma: 81412473
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I actually suggested Subscribed earlier. So that's cool.
|
|
|
|
|
|
#8733 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 136
Karma: 295674
Join Date: Jul 2021
Device: iPhone
|
This intrigued me, so I thought "why not add that little bit of info in my title page?" Turns out it wasn't as simple as I thought but it was a fun experiment!
I was having trouble trying to understand the logic for my replace_metadata, and it turns out when a fic isn't subscribed the value is null, but if it's not bookmarked, the value is false. Also I tried to do these tests with the test stories, but it didn't work on them so I must have done something wrong, worked with actual stories at least. My test results with actual stories. They look pretty nice on MapleRead too. The code: Spoiler:
|
|
|
|
|
|
#8734 |
|
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,304
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Most metadata entries are either present or not, it's unusual for them to be False. bookmarkrec and bookmarkprivate are set True/False instead.
I don't remember for sure, but I suspect that's for the benefit of tri-state boolean columns. subscribed and markedforlater should probably be True/False also for consistency.
|
|
|
|
|
|
#8735 |
|
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,304
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
New Test Version Posted
2023-07-26 - AO3: Make subscribed, markedforlater True/False to match bookmarked/bookmarkprivate/bookmarkrec |
|
|
|
|
|
#8736 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,571
Karma: 81412473
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
How does it work for people who aren't logged in? Always false?
|
|
|
|
|
|
#8737 |
|
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,304
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Not populated at all. All of those are only set with always_login:true
|
|
|
|
|
|
#8738 | |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 136
Karma: 295674
Join Date: Jul 2021
Device: iPhone
|
Quote:
I have another question, I was trying to test the bookmark/subscribed checks with test stories but I don't know which part I did wrong when trying to fill up the metadata. Back when I even tried with boolean values the plugin would return an error ("unexpected class 'bool'" IIRC). Now it just doesn't show any values. Test result Test code: Spoiler:
add_to_output_css: Spoiler:
|
|
|
|
|
|
|
#8739 |
|
Connoisseur
![]() Posts: 97
Karma: 10
Join Date: Sep 2018
Device: iPad mini
|
Culytera, nice to see someone else here reading Grey’s/Station 19
|
|
|
|
|
|
#8740 |
|
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,304
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
You need to add ,icon_bookmarked,icon_subscribed to add_to_extra_valid_entries
Code:
[test1.com] # URL: http://test1.com?sid=12345 add_to_extra_valid_entries:,prefix_category,prefix_ships,first_category,first_ship,icons,icon_bookmarked,icon_subscribed include_in_icons:icon_bookmarked,icon_subscribed |
|
|
|
|
|
#8741 |
|
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,304
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
New Test Version Posted
2023-07-27 - Fix fanfiktionde status parsing #980 - thanks, burny2! |
|
|
|
|
|
#8742 | |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 136
Karma: 295674
Join Date: Jul 2021
Device: iPhone
|
Quote:
Last edited by culytera; 07-27-2023 at 11:44 AM. |
|
|
|
|
|
|
#8743 |
|
Connoisseur
![]() Posts: 81
Karma: 10
Join Date: Jul 2010
Device: Pocketbook InkPad Color 3, Kindle Oasis 2, Moon+ Reader pro
|
I need a little help with a metadata change. I have "Anime ABC | Part 1" and "Anime ABC Part 2" as fandoms.
Can I use replace_metadata to capture all fandoms that contain "Anime ABC" and change them to "Anime XYZ"? |
|
|
|
|
|
#8744 | |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,571
Karma: 81412473
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
Code:
category=>^.*Elder Scroll.*$=>The Elder Scrolls |
|
|
|
|
|
|
#8745 |
|
Connoisseur
![]() Posts: 81
Karma: 10
Join Date: Jul 2010
Device: Pocketbook InkPad Color 3, Kindle Oasis 2, Moon+ Reader pro
|
Thank you.
Another question. In AO3, the characters often have the fandom attached to their names. Example: Perenelle Flamel (Harry Potter). Is it possible to automatically delete the (Harry Potter) in the names? So far I have solved this via replace_metadata and changed each name individually. Last edited by Tharos; 07-27-2023 at 04:28 PM. |
|
|
|
![]() |
| Tags |
| fanfiction |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] Open With | kiwidude | Plugins | 405 | 02-09-2026 08:54 AM |
| [GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 529 | 01-28-2026 11:32 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 |