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 06-21-2025, 09:20 PM   #10921
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,936
Karma: 4604435
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
Question (and [url=https://archiveofourown.org/works/24179737]story to test with[/url):

Code:
## Adds "Crossover" if more than one category after category replaces/includes/excludes.
add_category_when_multi_category:Crossover

replace_metdata:
## tagcategory standardization
 tagscategory=>(Mass Effect: Andromeda|Mass Effect Trilogy)=>Mass Effect
 tagscategory=>Pokémon=>Video Games

# Sorts anything other than a few selected categories into "Fanfiction.Other"
 tagscategory=>Crossover=>
 tagscategory=>^(?!.*(Half-Life|Portal|Mass Effect|The Elder Scrolls|Disney|Star Trek|(Animated )?Movies & Television|Books & Literature|Video Games)).*$=>Other

# Adds Fanfiction. to the beginning of tagcategory
 tagscategory=>^(.*)$=>Fanfiction.\1
If I include the crossover replace, I get a Fanfiction.Other on every fic with a crossover category (so not mismatch on these specific ones). What's happening?
I think you left out part--I don't get any tagscategory.

I'd consider include lines instead of a large negative lookahead regexp.

Quote:
Originally Posted by ownedbycats View Post
Also, was there ever a bug where AO3 series got jumbled in the saved metadata column? I was baffled to see these in two different fics:

https://archiveofourown.org/works/37857922 :
<p><span class='label'>Series</span>: <div class='metadata' id='seriesHTML'><a class='serieslink' href='., /, 2, 4, 5, 8, 9, :, a, c, e, f, g, h, i, n, o, p, r, s, t, u, v, w'> , &amp;, 3, [, ], a, b, d, e, f, h, i, k, l, n, o, r, s, t, u, w, ’</a></div><p>

https://archiveofourown.org/works/39459798 :
<p><span class='label'>Series</span>: <div class='metadata' id='seriesHTML'><a class='serieslink' href='., /, 1, 7, 9, :, a, c, e, f, g, h, i, n, o, p, r, s, t, u, v, w'> , ', 3, E, N, S, [, ], i, k, n, o, s, t, y</a></div><p>


The only thing they had in common were being the third in the series and downloaded in May/June 2022. Downloading metadata restored the actual series so its just a curiosity than anything to fix.
That's the result of a string in python being treated as a list. I don't remember anything about series being treated that way 3 years ago. Nor have I found anything in the few minutes I have to spend on it.

Honestly, if it's not happening now, I don't care.

In the 'teach to fish' category:
  • Go to the github repo.
  • Use the search box towards the top to search the repo.
  • In this case, I'd look at Commits.
Alternatively, if you are confident in your dates:
  • Go to the github repo.
  • Click commits.
  • Click where it says 'All time', to the date range you're interested in.
  • Peruse the commit from the time.
Here on MR:
  • Go back in thread and/or release history to that time period.
  • Look for posts.
JimmXinu is offline   Reply With Quote
Old 06-21-2025, 09:33 PM   #10922
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,899
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
edit: nevermind

Last edited by ownedbycats; 06-22-2025 at 11:06 PM.
ownedbycats is offline   Reply With Quote
Old 06-22-2025, 01:02 PM   #10923
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,936
Karma: 4604435
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2025-06-22
- Plugin BG Jobs: Remove old multi-process code
- Report BG job failed entirely as individual books failed instead of just exception. For #1225
JimmXinu is offline   Reply With Quote
Old 06-22-2025, 09:17 PM   #10924
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,936
Karma: 4604435
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2025-06-22
- Plugin BG Jobs: Remove old multi-process code
- Report BG job failed entirely as individual books failed instead of just exception. For #1225
- adapter_fimfictionnet: New img attr and class. #1226
JimmXinu is offline   Reply With Quote
Old 06-25-2025, 09:44 AM   #10925
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,936
Karma: 4604435
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2025-06-25
- adapter_ashwindersycophanthexcom: http to https
JimmXinu is offline   Reply With Quote
Old 06-27-2025, 08:00 PM   #10926
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,899
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
With use_archiveofourown_gay:true, update metadata from website gets NoneType errors on restricted stories. Tested several stories, did this. Other update modes work.

Glitch with the one update mode, or just website being screwy again?

EDIT: I pm'd links.

Last edited by ownedbycats; 06-27-2025 at 08:10 PM.
ownedbycats is offline   Reply With Quote
Old 06-27-2025, 08:48 PM   #10927
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,936
Karma: 4604435
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
With use_archiveofourown_gay:true, update metadata from website gets NoneType errors on restricted stories. Tested several stories, did this. Other update modes work.

Glitch with the one update mode, or just website being screwy again?

EDIT: I pm'd links.
Worked fine for me. Transient (hopefully) issues with the site, I would assume
JimmXinu is offline   Reply With Quote
Old Yesterday, 05:00 AM   #10928
ebichuman
Junior Member
ebichuman began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2025
Device: Kindle
URL Column - how to show in the list

Hi! I use Fanficfare to download exclusively from ao3. I love this plugin but would like to utilize Calibre better for my library.

I can view and click the story URL from the Id section or see the URL in the update pop-up.
I tried to add custom URL columns with #sourceurl and #calibre_cust_sourceurl but they did not work even though I updated.

I might be missing something basic but unfortunately could not find a solution by myself.
Attached Thumbnails
Click image for larger version

Name:	2025-06-30_10h53_03.png
Views:	15
Size:	166.6 KB
ID:	216591  
ebichuman is offline   Reply With Quote
Old Yesterday, 09:29 AM   #10929
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,936
Karma: 4604435
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ebichuman View Post
Hi! I use Fanficfare to download exclusively from ao3. I love this plugin but would like to utilize Calibre better for my library.

I can view and click the story URL from the Id section or see the URL in the update pop-up.
I tried to add custom URL columns with #sourceurl and #calibre_cust_sourceurl but they did not work even though I updated.

I might be missing something basic but unfortunately could not find a solution by myself.
You haven't actually said what you want to accomplish here, so I'm guessing a bit.

You can get FFF to populate your custom column on download/update with the story URL on FFF's Custom Column setting tab.

Alternatively, you can create in Calibre a composite custom column (AKA a 'column made from other columns') that displays the url identifier using {identifiers:select(url)}. That would work with past downloads without requiring update.

If there's a way to make a url clickable in a column, I don't know what it is.
JimmXinu is offline   Reply With Quote
Old Today, 02:11 AM   #10930
chrisric
Member
chrisric began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2020
Device: iPhone/Voice Dream Reader
Custom Adapters

Hi - I've been using a couple of custom adapters for a while now, I know next to nothing. I just copy what smart people have done already

Anyway, I normally clone the repo, make the changes and then make the zip and import a new plugin.

Is there a quicker way to test changes/new adapters? Maybe something can be added to the personal.ini file to point to the new adapter?

I guess I'm asking how everyone else does it.

Thanks.

-Chris
chrisric is offline   Reply With Quote
Old Today, 03:00 AM   #10931
ebichuman
Junior Member
ebichuman began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2025
Device: Kindle
Quote:
Originally Posted by JimmXinu View Post
You haven't actually said what you want to accomplish here, so I'm guessing a bit.

You can get FFF to populate your custom column on download/update with the story URL on FFF's Custom Column setting tab.

Alternatively, you can create in Calibre a composite custom column (AKA a 'column made from other columns') that displays the url identifier using {identifiers:select(url)}. That would work with past downloads without requiring update.

If there's a way to make a url clickable in a column, I don't know what it is.
That did work thank you. I keep a separate spreadsheet of the stories I like and I have it setup like this:
story name, author, URL, notes

I would like to compare it with my calibre data to see if I am missing any fics either from my spreadsheet or from Calibre. So I wanted to be able to view and export the table to compare. Now I can see the URL in Calibre. But is there also a way I can copy the columns that I can see as text to paste into Excel?
ebichuman is offline   Reply With Quote
Old Today, 08:58 AM   #10932
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,936
Karma: 4604435
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by chrisric View Post
Is there a quicker way to test changes/new adapters? Maybe something can be added to the personal.ini file to point to the new adapter?

I guess I'm asking how everyone else does it.
I use a batch file that creates the zip then installs it with "calibre-customize -a FanFicFare.zip" and starts Calibre

In practice, I don't think there are many users running their own code.

Quote:
Originally Posted by ebichuman View Post
I would like to compare it with my calibre data to see if I am missing any fics either from my spreadsheet or from Calibre. So I wanted to be able to view and export the table to compare. Now I can see the URL in Calibre. But is there also a way I can copy the columns that I can see as text to paste into Excel?
I don't think I've ever tried that--it's more of a Calibre question.
JimmXinu is offline   Reply With Quote
Old Today, 11:46 AM   #10933
applegaa
Connoisseur
applegaa began at the beginning.
 
applegaa's Avatar
 
Posts: 70
Karma: 10
Join Date: Apr 2019
Device: none
Quote:
Originally Posted by chrisric View Post
Anyway, I normally clone the repo, make the changes and then make the zip and import a new plugin.

Is there a quicker way to test changes/new adapters?

Quote:
Originally Posted by JimmXinu View Post
I use a batch file that creates the zip then installs it with "calibre-customize -a FanFicFare.zip" and starts Calibre

In practice, I don't think there are many users running their own code.
As a learning experiment, I've been working on creating adapters for a couple of unsupported sites that I read.

What I do is update the FanFicFare.zip file currently in use. The specific steps are:
Browse to \fanficfare\adapters\ within the zip file
Copy __init__.py out of the zip file
Edit __init__.py to load my adapter(s)
Copy __init__.py and my adapter file(s) into the zip file
Restart Calibre

The above steps have to be repeated each time you update the plugin, but otherwise changes to your adapter just require copying the new adapter file into the zip file and restarting Calibre.

I don't know if that's quicker than what you do, but I find it pretty simple.

Also, if your adapter file breaks the plugin, backing out is as simple as removing your adapters from the __init__.py file and restarting Calibre.

- Andrew
applegaa is offline   Reply With Quote
Old Today, 04:33 PM   #10934
Elaine T
Connoisseur
Elaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolate
 
Posts: 58
Karma: 33664
Join Date: Jun 2015
Device: kindle paperwhite
Quote:
Originally Posted by ownedbycats View Post
With use_archiveofourown_gay:true, update metadata from website gets NoneType errors on restricted stories. Tested several stories, did this. Other update modes work.

Glitch with the one update mode, or just website being screwy again?

EDIT: I pm'd links.

I just saw the same errors, in case this is helpful to know. Error message


Status
Title
Author
Comment
URL
Error
Unknown
Unknown
'NoneType' object has no attribute 'get_text'
https://archiveofourown.org/works/29515740
Elaine T 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 514 03-23-2025 10:26 AM
[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 08:20 PM.


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