Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 01-01-2019, 07:20 AM   #1
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 16,958
Karma: 26390450
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
[Metadata Source Plugin] Smashwords

This plugin gets the metadata for books from Smashwords.

Main Features
  • Can retrieve title, author, comments, publisher, publication date, language, series, tags and covers.
  • The identifier used is "smashwords". It will show in the details as "Smashwords".

Special Notes:
  • It retrieves the full size covers that are displayed when clicking on the cover when viewing the book. The usually have a height of 2200px.
  • Smashwords shows a category. This can have multiple values and levels. I haven't decided what to do with this yet.
  • For the series, Smashwords has both an index and what they call "custom_membership_statement". The latter seems to be descriptive text for where the book in the series. As an example, one book had this as "Volume 0.5", but the series index was "1". The plugin attempts to get the series index from the "custom_membership_statement".

Installation Notes:
  • Download the attached zip file and install the plugin as described in the Introduction to plugins thread.
  • Note that this is not a GUI plugin so it is not intended/cannot be added to context menus/toolbars etc.

Configuration:
  • Use long description: If this is checked, then long description shown when pressing "More" at the end of the description is used.

Version History:
Spoiler:
Version 1.0.0 - 23 March 2019
  • New: Everything. Initial release.
Attached Files
File Type: zip SmashwordsMetaData.zip (8.1 KB, 5730 views)

Last edited by davidfor; 03-23-2019 at 07:11 AM. Reason: Release version 1.0.0
davidfor is offline   Reply With Quote
Old 01-01-2019, 07:20 AM   #2
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 16,958
Karma: 26390450
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
[Reserved for later use.]
davidfor is offline   Reply With Quote
Advert
Old 02-03-2019, 03:59 PM   #3
MCBastos
Member
MCBastos began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jan 2012
Device: Nexus 4
I tried it (and I'm very grateful for someone to be working on this), but it does not seem to really work. I tried searching for metadata on several books that I know for a fact are in Smashwords, and Calibre retrieved metadata from all sorts of sources (Amazon, B&N, Goodreads...) but not Smashwords. Even if I manually add the book's Smashwords ID, it fails to find any metadata.
OTOH, clicking on the link for the manually-added Smashwords ID does open the correct Smashwords page. So that part at least works.
MCBastos is offline   Reply With Quote
Old 02-03-2019, 07:31 PM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 16,958
Karma: 26390450
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
Can you give me some examples where it failed? I need to look at them to work out why it failed to find the book.

One common reason for not finding the right book is if the title is too common. The plugin is only using the title for the search. And only looks at the first page of the results. For a common title, there can be a lot of books found, and, the one you want is always the last one.

I will have another look at this. When I was developing it, adding the author didn't help the results. But, I just did a test on the site, and it did help. Maybe they have changed the search.
davidfor is offline   Reply With Quote
Old 02-04-2019, 02:52 AM   #5
BeckyEbook
Groupie
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 171
Karma: 709704
Join Date: Jan 2017
Location: Poland
Device: Kindle (Key3, PW2, PW3), Nook (ST, GLP), Kobo Touch, Tolino Vision 2
@davidfor
This issue is related to your comment in file __init__.py (lines 68-83).

Because there is already an Smashwords Metadata.json config file on your system - you do not see this issue.

Delete config file and check again -- the plugin does not download ANY data.

Spoiler:
Code:
Plugin Smashwords Metadata failed
Traceback (most recent call last):
  File "site-packages\calibre\ebooks\metadata\sources\identify.py", line 48, in run
  File "calibre_plugins.smashwordsmetadata.__init__", line 217, in identify
  File "calibre_plugins.smashwordsmetadata.worker", line 37, in __init__
  File "calibre_plugins.smashwordsmetadata.__init__", line 91, in category_handling
  File "site-packages\calibre\utils\config.py", line 421, in __getitem__
KeyError: u'category_handling'
BeckyEbook is offline   Reply With Quote
Advert
Old 02-04-2019, 08:30 AM   #6
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 16,958
Karma: 26390450
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
Well, that's embarrassing. I wonder if it explains why no one has commented before on the plugin.

Anyway, I have fixed this problem, and an error in handling ISBNs. The first post has been updated.

If there are any issues, please report them here.
davidfor is offline   Reply With Quote
Old 02-05-2019, 03:01 PM   #7
MCBastos
Member
MCBastos began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jan 2012
Device: Nexus 4
It now seems to be working.
MCBastos is offline   Reply With Quote
Old 02-05-2019, 03:13 PM   #8
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 5,974
Karma: 26991853
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
For me, the major issue with this plug-in is that it is very enthused about returning books with no matching on the author. For instance, I picked up Connections in Death by J. D. Robb, added it to calibre and did a metadata update. There were 11 items returned. Two of them were for Connections in Death, the other 9 were books with Connections as the title by 9 different authors. Testing on various other books gives the same over-enthused results.
Attached Thumbnails
Click image for larger version

Name:	Sample metadata search.png
Views:	94
Size:	86.3 KB
ID:	169514  
DNSB is online now   Reply With Quote
Old 02-06-2019, 07:57 AM   #9
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 16,958
Karma: 26390450
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
Just posted another beta that should fix that. I wasn't checking the author at a good point, so it was getting far to many results if there wasn't a good match.
davidfor is offline   Reply With Quote
Old 02-06-2019, 10:18 AM   #10
Sirtel
Wizard
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 1,511
Karma: 11800445
Join Date: Jan 2014
Location: Estonia
Device: Kindle Voyage, Kindle Oasis 1 & 2, Nook Glowlight Plus (7.8'')
Very nice plugin, thank you! I buy from Smashwords quite often and always had to download the hi-res covers manually, because they didn't come with the files.
Sirtel is offline   Reply With Quote
Old 02-09-2019, 01:16 AM   #11
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 5,974
Karma: 26991853
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
Quote:
Originally Posted by davidfor View Post
Just posted another beta that should fix that. I wasn't checking the author at a good point, so it was getting far to many results if there wasn't a good match.
DNSB is online now   Reply With Quote
Old 03-23-2019, 03:22 PM   #12
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 5,974
Karma: 26991853
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
Any notable changes between the last beta and the release version?
DNSB is online now   Reply With Quote
Old 03-23-2019, 08:38 PM   #13
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 16,958
Karma: 26390450
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
The released version has no function changes. I just removed most of the logging.
davidfor is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Metadata Source Plugin] DatabazeKnih (cz) baghira Plugins 104 06-10-2019 10:15 AM
[Metadata Source Plugin] BiblioNETka.pl fenuks Plugins 3 03-09-2017 08:26 PM
[Metadata Source Plugin] INMONDADORI Pr.BarnArt Plugins 5 07-29-2016 05:56 AM
[Metadata Source Plugin] DIZZIE_NL Pr.BarnArt Plugins 7 08-11-2014 01:48 PM
[Metadata Source Plugin] Pitaval.cz (cz,sk) Miisha Plugins 0 07-11-2012 04:39 PM


All times are GMT -4. The time now is 07:15 PM.


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