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-23-2011, 03:25 PM   #1
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,679
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
[Metadata Source Plugin] Goodreads

This plugin allows Calibre to read book information from goodreads.com when you choose to download/fetch metadata. Adding this plugin can potentially increase both the success rate and quality of information retrieved for some of your books.

Main Features
  • Can retrieve goodreads id, title, author, series, isbn, comments, rating, publisher, publication date, tags, language and covers
  • Option to retrieve the precise rating and # votes into identifiers than can be bound to custom columns.
  • Option to customise the Goodreads genre -> Calibre tag mappings. A default set of the most popular genre tag mappings is included as a starting point.
  • Option to additionally search multiple editions of a book for the best set of metadata excluding audio editions (plugin will run slightly slower with this enabled, disabled by default)
  • Option to retrieve all contributors to a book as an author. By default this is turned off, however Goodreads is able to provide illustrators, editors etc should you want these retrieved.
  • By retrieving the Goodreads id this plugin offers improved integration with the Goodreads Sync plugin. This works both ways - once you have linked to a specific Goodreads edition then retrieving metadata will obtain it for only that edition.
  • The goodreads id will also be displayed in the book details panel to be clicked on and taken directly to the website for that book.

Special Notes:
Paypal Donations:
  • If you find this or any of my other plugins useful please feel free to show your appreciation. I have spent many hundreds of unpaid hours in their development and support so any encouragement for me to continue is appreciated!
Attached Files
File Type: zip Goodreads.zip (203.1 KB, 7531 views)

Last edited by kiwidude; 06-13-2024 at 05:34 AM. Reason: New version
kiwidude is offline   Reply With Quote
Old 04-24-2011, 03:04 PM   #2
Sassafrass
Member
Sassafrass began at the beginning.
 
Sassafrass's Avatar
 
Posts: 11
Karma: 10
Join Date: Apr 2011
Location: East Coast, USA
Device: Kindle 3G + WiFi
works great. Thank you!!
Sassafrass is offline   Reply With Quote
Advert
Old 04-24-2011, 03:36 PM   #3
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,679
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Thx for the feedback Sassafrass, great to hear.
kiwidude is offline   Reply With Quote
Old 04-24-2011, 07:27 PM   #4
sweetheart51224
Junior Member
sweetheart51224 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2011
Device: Sony Reader
Thank you!! This is awesome
sweetheart51224 is offline   Reply With Quote
Old 04-24-2011, 10:18 PM   #5
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,867
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
I am loving the tag mapping.
DoctorOhh is offline   Reply With Quote
Advert
Old 04-25-2011, 06:43 AM   #6
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,679
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by dwanthny View Post
I am loving the tag mapping.
Excellent

I have found one issue which I will publish a new version for (just waiting to see if anything else comes up). The genre tags are sorted by popularity on their web page, but I have some (legacy) code that sorts the tags after doing the mappings. So if you say set the metadata download to get only 3 tags as a limit, you get the first three alphabetically rather than the first 3 by popularity which is obviously wrong.
kiwidude is offline   Reply With Quote
Old 04-25-2011, 06:54 AM   #7
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,867
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by kiwidude View Post
I have found one issue which I will publish a new version for (just waiting to see if anything else comes up). The genre tags are sorted by popularity on their web page, but I have some (legacy) code that sorts the tags after doing the mappings. So if you say set the metadata download to get only 3 tags as a limit, you get the first three alphabetically rather than the first 3 by popularity which is obviously wrong.
Since you already found it I don't have to mention it. Changing from alphabetical to popular will help a lot.

In the interim I have extended my limit to 10 tags and have been reviewing many books manually to figure out what mapping I want to include and dumping the outliers. If I already have some odd tags listed I do a manual look up on goodreads site itself to find out which tags they have and which have the highest popularity and decide which tags I might want to map out.

Thanks for this plugin.
DoctorOhh is offline   Reply With Quote
Old 04-25-2011, 03:11 PM   #8
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,679
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
v1.0.1 Released

Changes in this release:
  • Ensure tags mapped are returned by order of Goodreads genre popularity not alphabetically so applying a tag threshold works better
  • Add support for API change upcoming in Calibre 0.7.58 allowing hyperlinked ids in book details panel

The second of the changes has been made in such a way as to be backwards compatible so as soon as you install Calibre 0.7.58 or later the new feature it is intended for will be enabled.
kiwidude is offline   Reply With Quote
Old 04-25-2011, 10:50 PM   #9
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,867
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by kiwidude View Post
Changes in this release:
  • Ensure tags mapped are returned by order of Goodreads genre popularity not alphabetically so applying a tag threshold works better
This doesn't seem to be hitting the mark and I can't tell what order they are being prioritized. Here is one example and what I get depending how many tags I limit calibre to.

Based on the info below I would expect the top 5 to be Vampires, Paranormal, Romance, Chick Lit, Urban Fantasy. What I get seems to defy reason.

Title - Real Vampires Have Curves
Author - Gerry Bartlett
IDs - isbn:9780425220962, goodreads:2619878

Top 01 - Humor
Top 02 - Humor, Vampires
Top 03 - Humor, Vampires, Paranormal
Top 04 - Humor, Vampires, Paranormal, Romance
Top 05 - Humor, Vampires, Paranormal, Romance, Fantasy
Top 06 - Humor, Vampires, Paranormal, Romance, Fantasy, Adult
Top 07 - Humor, Vampires, Paranormal, Romance, Fantasy, Adult, Chick Lit
Top 08 - Humor, Vampires, Paranormal, Romance, Fantasy, Adult, Chick Lit, Comedy
Top 09 - Humor, Vampires, Paranormal, Romance, Fantasy, Adult, Chick Lit, Comedy, Urban Fantasy
Top 10 - Humor, Vampires, Paranormal, Romance, Fantasy, Adult, Chick Lit, Comedy, Urban Fantasy, Fantasy

Goodreads Genre listing for this book by popularity.

Dark Fantasy > Vampires --- 54 users
Paranormal --- 54 users
Romance > Paranormal Romance --- 33 users
Womens Fiction > Chick Lit --- 26 users
Romance --- 19 users
Fantasy > Urban Fantasy --- 11 users
Fantasy --- 7 users
Adult Fiction --- 5 users
Humor --- 3 users
Humor > Comedy --- 2 users

My Mappings:
Dark Fantasy > Vampires | Vampires
Paranormal | Paranormal
Romance > Paranormal Romance | Paranormal, Romance
Womens Fiction > Chick Lit | Chick Lit
Romance | Romance
Fantasy > Urban Fantasy | Urban Fantasy
Fantasy | Fantasy
Adult Fiction | Adult
Humor | Humor
Humor > Comedy | Comedy

Last edited by DoctorOhh; 04-25-2011 at 10:56 PM.
DoctorOhh is offline   Reply With Quote
Old 04-26-2011, 04:50 AM   #10
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,679
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
@Walt - thx for the info. I think I can see the problem - I just got "lucky" on the titles that I tested on. It is to do with using some (unordered) Python sets instead of lists which stopped a tag from being added twice but of course in hindsight lost the ordering. I will push a new version.
kiwidude is offline   Reply With Quote
Old 04-26-2011, 04:59 AM   #11
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,679
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
v1.0.2 Released

Changes in this release:
  • Properly fix the ordering of tags.

Sorry folks for the false start on supposedly having this issued "fixed" last time, it had just coincidentally worked on the couple of titles I tried it.
kiwidude is offline   Reply With Quote
Old 04-29-2011, 11:27 AM   #12
capnm
Groupie
capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'
 
Posts: 156
Karma: 10001
Join Date: Feb 2011
Device: sony
Is this just a simple bug in the goodreads plugin when dealing with accented characters?

Example:

Starting download
Query: title:The Night Manager; authors:John le Carré
Running identify query with parameters:
{u'authors': [u'John le Carr\xe9'], u'identifiers': {}, u'timeout': 30, u'title': u'The Night Manager'}
Using plugins: Goodreads, Amazon.com, Overdrive
The log from individual plugins is below

****************************** Goodreads ******************************
Request extra headers: [('User-agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3')]
Found 0 results
Downloading from Goodreads took 0.0629999637604
Plugin Goodreads failed
Traceback (most recent call last):
File "site-packages\calibre\ebooks\metadata\sources\identify. py", line 40, in run
File "calibre_plugins.goodreads.__init__", line 111, in identify
File "calibre_plugins.goodreads.__init__", line 72, in create_query
File "urllib.py", line 1238, in quote
KeyError: u'\xe9'
capnm is offline   Reply With Quote
Old 04-29-2011, 11:45 AM   #13
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,679
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Hi capnm - yes, that does look the case. I'll figure out a fix shortly.
kiwidude is offline   Reply With Quote
Old 04-29-2011, 12:35 PM   #14
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,679
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
v1.0.3 Released

Changes in this release:
  • Fix to ensure non ascii author names are parsed correctly.
kiwidude is offline   Reply With Quote
Old 05-03-2011, 08:59 AM   #15
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,867
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
I used this plugin and went through my 7300 books to update my tags. I started with around 953 tags and now that I finished I am sitting at 208 tags.

I attached my goodreads.json file with the mappings in place. I wish I had a more extensive mapping when I was doing my update to begin with. For the most part I limited tags to 4 per book, sometimes I would trim back to 1 or 2 and for Non-fiction books I would often allow up to 8.

The only thing I don't have mapped is Contemporary, Modern, Adult Fiction and Adult. If a book pops up as erotica then the adult tag is also added to that book.

All of the mappings in the file work. The good news with this json file is you don't have to hunt around to see what is there and how to make it work and you can easily remove tag mappings, but since it is easy to limit tags to a particular number, leaving everything in place works great without gaining too many tags.

Update: If you choose to use this file you must do the following.
1. Exit calibre
2. Unzip this file, you now have a goodreads.json file
3. Find the plugins directory under your calibre configuration directory.
4. Rename your existing goodreads.json file to goodreads.json.org in case you feel the need to go back to it.
5. Place the new goodreads.json file in the plugins directory.
6. Start calibre

Now you can go to Preferences - Metadata download - select goodreads - click Configure selected source to see what is currently mapped for goodreads metadata downloadable tags.

Update 2: I am now running a modified version of the json file created by Huisie. This json file can be found here. It starts with about 800 goodreads tags mapped. The Goodreads json file attached to this post has about 250 Goodreads tags mapped. Either is a good starting point.
Attached Files
File Type: zip Goodreads.zip (18.4 KB, 2999 views)

Last edited by DoctorOhh; 03-18-2014 at 09:45 PM.
DoctorOhh is offline   Reply With Quote
Reply

Tags
goodreads, metadata


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Goodreads Sync kiwidude Plugins 1763 10-07-2024 11:02 PM
[Metadata Download Plugin] Goodreads Metadata **Deprecated** kiwidude Plugins 30 04-23-2011 02:10 PM
[Covers Plugin] Goodreads Covers **Deprecated** kiwidude Plugins 13 04-17-2011 05:09 PM
metadata plugin redneck_momma Plugins 1 05-21-2010 08:41 PM


All times are GMT -4. The time now is 03:49 PM.


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