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 04-19-2019, 11:58 PM   #3361
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,986
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by jesscat View Post
I would like pairings separated with "&" on AO3 (eg "Harry & Severus") NOT to be included in "ships" (for purposes of my #ships custom column), but I'd still like them to be included in the Tags column.

I can easily remove the pairing from ships with replace_metadata. But I can't figure out how to do this while keeping the pairing in the tag list - if it isn't a separate tag or character, removing it from ships removes it from the tags. I thought about ships2chars, somehow putting this ship into Characters, but as far as I can tell I can't use that to accomplish what I want (though I have to admit I don't completely understand what ship2chars does and can't find much about it in default.ini or here in the forums, so I definitely could be wrong).
Because you both want to edit ships and not edit ships in different places, you need to make a copy of ships:

Code:
add_to_extra_valid_entries:,onlyromships
include_in_onlyromships:ships
Entry onlyromships is now a copy of ships. Remove '&' entries from onlyromships and set it into your ships column. replace_metadata lines for onlyromships will not effect ships.

Alternatively, you could do:

Code:
add_to_extra_valid_entries:,allships
include_in_allships:ships.NOREPL
Entry allships is now a copy of ships that won't have any of ships' replacements (.NOREPL==no replacements). But then you have to change include_subject_tags to use allships instead of ships which involves more steps.

ships2chars isn't really a feature of FFF so much as a use pattern to add all characters that appear in ships to characters for sites/authors that don't list them all. Searching this thread for ships2chars (note ships) finds a number of posts where it was discussed.

(Make sure you only have one add_to_extra_valid_entries in each section, BTW.)
JimmXinu is online now   Reply With Quote
Old 04-20-2019, 07:15 PM   #3362
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
Quote:
Originally Posted by JimmXinu View Post
Because you both want to edit ships and not edit ships in different places, you need to make a copy of ships:

Thank you!!! That's the element I was overlooking, and now I understand better how I can make my own "variables" (or whatever the right term is?). This works perfectly! I'm glad you included the other solution too - I don't think it would work for me here because I have other replacements in ships besides this one, but it still helps my understanding.
jesscat is offline   Reply With Quote
Old 04-21-2019, 12:54 AM   #3363
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 JimmXinu View Post
The logpage feature didn't get a lot of discussion because, until now--to the best of my knowledge--nobody but me used it.
Been actually using it myself for years, it just works with what I want it to do and never had noticed any issues so never brought it up. Mine does have words_added if that is worth anything, though I have no idea where I got it from.
chrnno is offline   Reply With Quote
Old 04-21-2019, 10:07 AM   #3364
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,986
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Glad it's useful to you.
JimmXinu is online now   Reply With Quote
Old 04-21-2019, 10:50 AM   #3365
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,986
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
My mistake. Thanks for point that out.

Quote:
Originally Posted by Twilight666 View Post
Just FYI, for some reason CLI version 3.7 has not been released yet:
https://pypi.org/project/FanFicFare/#history
JimmXinu is online now   Reply With Quote
Old 04-21-2019, 11:21 AM   #3366
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
Quote:
Originally Posted by JimmXinu View Post
Glad it's useful to you.
Again, and even though I'm a relative newbie to using FFF with Calibre (though not to FFF, Calibre, or fanfic - just to the combination!) - I think it's great!
jesscat is offline   Reply With Quote
Old 04-21-2019, 12:29 PM   #3367
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
I have a tristate boolean custom column (#my_bookmark) for recording whether I have a story bookmarked on AO3 ("bookmarked"). In personal.ini, under [archiveofourown.org], I have:

Code:
add_to_custom_columns_settings:
 bookmarked=>#my_bookmarks
That's the only reference to "bookmarked" in my personal.ini.

A few posts up I asked about recording bookmarks for AO3 series, and you explained why that wasn't feasible. Yet for some reason, starting sometime after Friday (today is the first time since Friday that I made an anthology), whenever I anthologize a series from AO3 using "Make anthology epub from Web Page," the new anthology ePub is created with its #my_bookmark column flagged "yes" (ie, bookmarked).

I can't figure out how this could be happening. There shouldn't be any way for an anthology created by FFF to be automatically bookmarked should there? There is no series bookmark field, and I didn't think there was a mechanism for FFF to set the bookmarked column of an anthology based on the bookmarked status of the composite stories (at least one of the composite stories of my anthologies is always bookmarked on AO3).

Just in case, I double checked the ePub Merge plugin settings to make sure, but ePub Merge is not configured to set that column at all. I have no reference to "bookmarked" in my personal.ini other than the one above. I have nothing in my personal.ini about anthologies other than a slight change to the title pattern.

Do you have any thoughts about what might be causing this?

If it matters, here's an example of one series on which I used the anthology feature, that was created with a "bookmarked" status, though I'm not sure if it will help since you don't have the same custom column as I do:

https://archiveofourown.org/series/387988
jesscat is offline   Reply With Quote
Old 04-21-2019, 04:08 PM   #3368
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,986
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
@jesscat - I don't know what's going on for you. I don't get that behavior.

I have a boolean custom column, with tri-state bools enabled in Calibre settings, set from bookmarked very similarly. My custom column is left 'null' when none of the stories are bookmarked, when one is bookmarked, or when all are bookmarked.

I put in some debug output and the values are exactly what I expect and behave as predicted.

The only thing I can think of is if you have replace_metadata settings that remove 'False' values and there is exactly one bookmarked=='True' story in the series. Except that you said you don't have any other bookmarked references. (Or, I suppose if you're setting it from the Custom Columns tab by mistake.)

If you look on the personal.ini tab, there's a 'View "Safe" personal.ini' button. I might be able to help more if I see your entire personal.ini. [CODE] tag is helpful for that, or attached .txt file.
JimmXinu is online now   Reply With Quote
Old 04-21-2019, 04:32 PM   #3369
Tharos
Connoisseur
Tharos began at the beginning.
 
Posts: 68
Karma: 10
Join Date: Jul 2010
Device: Pocketbook InkPad Color 3, Kindle Oasis 2, Moon+ Reader pro
The Adapter for webnovel.com stops at the end of volume 1 and does not take the chapters of volume 2 with it.

Example: https://www.webnovel.com/book/117217...onate-Spitfire
Tharos is offline   Reply With Quote
Old 04-21-2019, 05:33 PM   #3370
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,986
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2019-04-21
- Update adapter_asianfanficscom to fetch chapter texts from JSON url.
- Ad wall indicator has changed for adapter_webnovelcom.

Quote:
Originally Posted by Tharos View Post
The Adapter for webnovel.com stops at the end of volume 1 and does not take the chapters of volume 2 with it.

Example: https://www.webnovel.com/book/117217...onate-Spitfire
It looks like the indicator for ad-wall blocked chapters has changed. This test version works on the few stories from webnovel.com I've tried, but I don't read that site, so I only tested a small set.
JimmXinu is online now   Reply With Quote
Old 04-21-2019, 09:48 PM   #3371
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
T
Quote:
he only thing I can think of is if you have replace_metadata settings that remove 'False' values and there is exactly one bookmarked=='True' story in the series
Out of curiosity, what would this do? I don't have these settings, but I am having trouble seeing how they would affect the "bookmarked" value of the series.

The phenomenon I described has mostly stopped, though it still is happening occasionally, and I can't see a pattern. It happened with a non-anthology story downloaded from another site as well - the story (from ff.net, for which I have nothing assigned to my #my_bookmarks custom column) downloaded and then appeared in my library with the bookmarked flag set to yes.

I'm assuming there is something in my settings or personal.ini that is causing this, but it's difficult for me to figure out since it happens only occasionally. I will turn on debug mode and try to capture this happening, and if/when I do, I'll attach the log, since there's not much further to be done without it.

******

I have another question/issue. Here's story on AO3 with the author "tessarwyn [archived by TheHexFiles_Archivist]:

https://archiveofourown.org/works/8188919

Under [archiveofourown.org], I have

Code:
use_archived_author:true
I thought that this would cause the "author" field for stories like this to be set to "tessarwyn" rather than "TheHexFiles_Archivist" without my having to do anything else. But it is not working. The author field shows TheHexFiles_Archivist.

Am I doing something wrong or am I misunderstanding the function of use_archived_author?

Thanks!
jesscat is offline   Reply With Quote
Old 04-21-2019, 11:06 PM   #3372
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,986
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2019-04-21
- Update adapter_asianfanficscom to fetch chapter texts from JSON url.
- Ad wall indicator has changed for adapter_webnovelcom.
- Fix use_archived_author in AO3.

Quote:
Originally Posted by jesscat View Post
Out of curiosity, what would this do? I don't have these settings, but I am having trouble seeing how they would affect the "bookmarked" value of the series.
If the string evaluates (case insensitively) to 'true' ('t'/'yes'/'y'/'1') it will be treated as True, regardless of how it got there.

Quote:
Originally Posted by jesscat View Post
The phenomenon I described has mostly stopped, though it still is happening occasionally, and I can't see a pattern. ...
Yeeeah... I made my suggestion (post safe personal.ini).

Quote:
Originally Posted by jesscat View Post
I have another question/issue. Here's story on AO3 with the author "tessarwyn [archived by TheHexFiles_Archivist]: ...
Broken regex from BS4 conversion lo these many moons ago. Or maybe the Python3 conversion.
JimmXinu is online now   Reply With Quote
Old 04-22-2019, 07:25 PM   #3373
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,986
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2019-04-22
- Improvements for adapter_asianfanficscom, thanks oh45454545
JimmXinu is online now   Reply With Quote
Old 04-23-2019, 08:50 PM   #3374
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,986
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2019-04-23
- More improvements for adapter_asianfanficscom, including auto_sub feature, thanks oh45454545
JimmXinu is online now   Reply With Quote
Old 04-23-2019, 09:42 PM   #3375
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
Quote:
Entry onlyromships is now a copy of ships. Remove '&' entries from onlyromships and set it into your ships column. replace_metadata lines for onlyromships will not effect ships.
A few days ago when you helpfully instructed me how to do this, I included this line in my personal.ini and it worked great:

Code:
exclude_metadata_post: 
 onlyromships=~[ ]*&[ ]
Today it wasn't working for me, and in attempting to debug, I discovered this works:

Code:
exclude_metadata_post: 
 onlyromships=~[ ]*&[ ]
I had thought I read in an earlier post that the ampersand was the one symbol that didn't follow the usual reg ex rules and had to be & Did something change in the last few days? (I have been staying up to date on the test versions.) Or am I imagining this?
jesscat 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 11:41 PM.


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