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, 08: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,057
Karma: 26029014
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.

As this is brand new, it is to be considered a beta. I will get it added to the plugin list when there has been some more testing.

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 0.0.3 - 6 February 2019
  • Fix: Not using author when matching.
Version 0.0.2 - 04 February 2019[/post]
  • Fix: Error reading options.
  • Fix: Correct handling of 404 error if ISBN not found.
Version 0.0.1 - 01 January[/post]
  • First release
Attached Files
File Type: zip SmashwordsMetaData.zip (11.8 KB, 11 views)

Last edited by davidfor; 02-06-2019 at 08:55 AM. Reason: Update to version 0.0.3
davidfor is offline   Reply With Quote
Old 01-01-2019, 08: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,057
Karma: 26029014
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, 04: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, 08: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,057
Karma: 26029014
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, 03:52 AM   #5
BeckyEbook
Zealot
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: 147
Karma: 482074
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, 09: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,057
Karma: 26029014
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, 04: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, 04: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,440
Karma: 25113291
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:	14
Size:	86.3 KB
ID:	169514  
DNSB is online now   Reply With Quote
Old 02-06-2019, 08: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,057
Karma: 26029014
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, 11: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,213
Karma: 10203386
Join Date: Jan 2014
Location: Estonia
Device: Kindle Voyage, Kindle Oasis 1 & 2
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, 02: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,440
Karma: 25113291
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
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 103 11-15-2018 02:57 PM
[Metadata Source Plugin] BiblioNETka.pl fenuks Plugins 3 03-09-2017 09:26 PM
[Metadata Source Plugin] INMONDADORI Pr.BarnArt Plugins 5 07-29-2016 06:56 AM
[Metadata Source Plugin] DIZZIE_NL Pr.BarnArt Plugins 7 08-11-2014 02:48 PM
[Metadata Source Plugin] Pitaval.cz (cz,sk) Miisha Plugins 0 07-11-2012 05:39 PM


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


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