View Single Post
Old 12-12-2023, 12:58 AM   #1
azuravian
Enthusiast
azuravian can shake the floor when laughingazuravian can shake the floor when laughingazuravian can shake the floor when laughingazuravian can shake the floor when laughingazuravian can shake the floor when laughingazuravian can shake the floor when laughingazuravian can shake the floor when laughingazuravian can shake the floor when laughingazuravian can shake the floor when laughingazuravian can shake the floor when laughingazuravian can shake the floor when laughing
 
Posts: 32
Karma: 63058
Join Date: Feb 2012
Device: Kobo Aura One
Lightbulb [GUI Plugin] GR Author Notes

Edit 11/19/24:
  • Returned from hiatus (lost job, gained job, surgery, etc.)
  • Kept updates added by Terisa de morgan
  • Cleaned up code and added comments
  • Fixed missing return in dialog

Edit 01/13/24:
  • Added option to use Google Translate to translate the author bio into the language of your choice. Can be configured in the plugin config.
  • Cleaned up code

Edit 12/18/23:
  • Added translation for Spanish (courtesy of @dunhill)
  • Added option to skip authors who already have a GR Author Notes bio as their note
  • Cleaned up code

Edit: Updated plugin to manually load the dependencies directly from the zip file without using pip.

With the notes feature in Calibre 7, I thought of a new plugin that I knew I would want, so I wrote it and am sharing it here.

This plugin pulls author information from GoodReads and writes it to the author note.

Everything is organized in a table (see example below) and the background color, border color, and text color can be changed in the plugin configuration. It defaults to the colors shown in the example image.

Currently, it uses a Goodreads function that is also used by Calibre to "guess/search" the author page. This is almost always correct, but if you have an author where a more well-known author has the same name as the author of your book. For example, if you have books by South African novelist Peter Abrahams, Goodreads will return American mystery writer Peter Abrahams instead.

If the author isn't found or if the author exists in Goodreads, but has no biography information, they will be skipped.

Please let me know if you find this useful or have any suggestions.

Example:
Click image for larger version

Name:	KZKudXc.png
Views:	2569
Size:	187.6 KB
ID:	205160

Interface:
Click image for larger version

Name:	V7ffB8W.png
Views:	2434
Size:	12.4 KB
ID:	205162

Configuration:
Click image for larger version

Name:	t1EoV9l.png
Views:	2444
Size:	7.9 KB
ID:	205161
Attached Files
File Type: zip GR_Author_Notes_1.2.2.zip (2.25 MB, 470 views)

Last edited by azuravian; 11-19-2024 at 01:17 AM. Reason: Updating to v1.2.2
azuravian is offline   Reply With Quote