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-03-2017, 04:11 PM   #16
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,903
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Nicolas F View Post
This is really good! I didn't know it was possible to get a high res cover this easily!

Since I don't set ASIN for the books in my Calibre library I played around and made a version that use the title and author name to search for the ASIN on amazon (I used the amazon metadata plugin from Calibre). I will put it on github.

It will probably need testing, but it's working for me so far!

I also changed the name because since it was too long the cover size wasn't showing.

Thanks for your work
Can you please attach your version of the plugin to a message in this thread? Thanks.
JSWolf is offline   Reply With Quote
Old 06-04-2017, 05:51 AM   #17
lbschenkel
Enthusiast
lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'
 
Posts: 40
Karma: 127198
Join Date: Aug 2011
Location: Malmö, Sweden
Device: Kobo Aura 1, Kindle DXG, Kindle PW2
Quote:
Originally Posted by Nicolas F View Post
This is really good! I didn't know it was possible to get a high res cover this easily!

Since I don't set ASIN for the books in my Calibre library I played around and made a version that use the title and author name to search for the ASIN on amazon (I used the amazon metadata plugin from Calibre). I will put it on github.

It will probably need testing, but it's working for me so far!

I also changed the name because since it was too long the cover size wasn't showing.

Thanks for your work
Hi Nicolas. Thanks so much for your work. As I suspected, once you add scraping to the equation it becomes 80% of the code. :-)

I was planning to do this later because honestly I won't be the audience for this feature — when I download covers, I already determined the ASIN and I want the cover for that specific edition, and that edition only. But since you were kind enough to contribute with the implementation, I can incorporate it now.

Is it OK with you if I incorporate your code in the plug-in? Let me know how you want attribution.

I will improve upon this to scrape Goodreads as well since Amazon will not always show you old all existing Kindle editions, but Goodreads usually does. I will make it configurable so you can enable/disable them individually.

How does that sound?
lbschenkel is offline   Reply With Quote
Advert
Old 06-04-2017, 06:02 AM   #18
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,903
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Scrape Goodreads for the ASIN or scrape Goodreads for the cover?
JSWolf is offline   Reply With Quote
Old 06-04-2017, 07:06 AM   #19
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,903
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
@Nicolas, the plugin is working rather well. Thank you for your changes to it.
JSWolf is offline   Reply With Quote
Old 06-04-2017, 07:18 AM   #20
Nicolas F
Groupie
Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.
 
Posts: 161
Karma: 1842
Join Date: Jan 2016
Device: Kobo Glo HD
Quote:
Originally Posted by lbschenkel View Post
Hi Nicolas. Thanks so much for your work. As I suspected, once you add scraping to the equation it becomes 80% of the code. :-)

I was planning to do this later because honestly I won't be the audience for this feature — when I download covers, I already determined the ASIN and I want the cover for that specific edition, and that edition only. But since you were kind enough to contribute with the implementation, I can incorporate it now.

Is it OK with you if I incorporate your code in the plug-in? Let me know how you want attribution.

I will improve upon this to scrape Goodreads as well since Amazon will not always show you old all existing Kindle editions, but Goodreads usually does. I will make it configurable so you can enable/disable them individually.

How does that sound?
Yes, I was surprised as how little code you used to download the covers (there might be a shorter way to code what I did since I'm no professional)!

Of course you can incorporate it, I made a pull request on github if you're OK with my additions.
For the attribution, you can just put my name as a contributor
Also I didn't add a license since there was none, but you should add one (GPL v3 is commonly used)

A setting would be a good idea if you add more sources (I already added one to choose the number of covers to download). And amazon might not even be needed if the goodreads database is enough (if I remember correctly goodreads is now owned by amazon)

Quote:
Scrape Goodreads for the ASIN or scrape Goodreads for the cover?
For the ASIN, if you want to get the covers the Goodreads metadata plugin already does this.
And thanks for the feedback!
Nicolas F is offline   Reply With Quote
Advert
Old 06-04-2017, 05:36 PM   #21
milady133
Groupie
milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.
 
Posts: 180
Karma: 616200
Join Date: May 2014
Location: Spain
Device: Kobo Forma, Hisense A5
Just a question about the plugin, when there's no ASIN in the book metadata and searchs for it based on title & author, what does the plugin do when there's more than one?
I'll probably use it only setting the ASIN previously to make sure I get the cover I want in case there's more than one edition, but I'm curious.
Thanks
milady133 is offline   Reply With Quote
Old 06-05-2017, 10:50 AM   #22
Nicolas F
Groupie
Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.
 
Posts: 161
Karma: 1842
Join Date: Jan 2016
Device: Kobo Glo HD
Quote:
Originally Posted by milady133 View Post
Just a question about the plugin, when there's no ASIN in the book metadata and searchs for it based on title & author, what does the plugin do when there's more than one?
I'll probably use it only setting the ASIN previously to make sure I get the cover I want in case there's more than one edition, but I'm curious.
Thanks
The way it's done for now, the plugin search amazon.com for the title + the first author, and it gets the books in the order they appear on the search page (if the books have the good author). You can get multiple covers this way, the good one is not necessarily the first, there is a setting to select the number of covers to download.
Nicolas F is offline   Reply With Quote
Old 06-05-2017, 11:05 AM   #23
milady133
Groupie
milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.milady133 ought to be getting tired of karma fortunes by now.
 
Posts: 180
Karma: 616200
Join Date: May 2014
Location: Spain
Device: Kobo Forma, Hisense A5
Thanks, I've yet to try it, i haven't been at home this weekend, so I haven't installed it.
milady133 is offline   Reply With Quote
Old 06-06-2017, 07:46 AM   #24
Ravensknight
Serpent Rider
Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.
 
Ravensknight's Avatar
 
Posts: 1,123
Karma: 10219804
Join Date: Jun 2009
Device: Sony 350; Nook STR; Oasis
I've added this plugin and started using it. Now, when I add amazon:B00E257WXW to the identifiers field, I'll get an amazon cover that is equivalent to the highest google image. But when I go to the website you reference and input that same asin, I get a cover that is almost twice the resolution. I've just tested it once with the above asin, not any others. Should I try some others?

Any idea why this might be happening?
Ravensknight is offline   Reply With Quote
Old 06-06-2017, 07:53 AM   #25
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,208
Karma: 16534692
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by Ravensknight View Post
Any idea why this might be happening?
Have a look at your Tweak setting in Preferences > Change calibre behaviour > Tweaks - 'The maximum width and height for covers saved in the calibre library'

e.g I have mine set at
Code:
maximum_cover_size = (1500, 2100)
I believe calibre's Edit metadata Download cover option uses any limit you have set here.
jackie_w is offline   Reply With Quote
Old 06-06-2017, 08:03 AM   #26
Ravensknight
Serpent Rider
Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.
 
Ravensknight's Avatar
 
Posts: 1,123
Karma: 10219804
Join Date: Jun 2009
Device: Sony 350; Nook STR; Oasis
Quote:
Originally Posted by jackie_w View Post
Have a look at your Tweak setting in Preferences > Change calibre behaviour > Tweaks - 'The maximum width and height for covers saved in the calibre library'

e.g I have mine set at
Code:
maximum_cover_size = (1500, 2100)
I believe calibre's Edit metadata Download cover option uses any limit you have set here.
Thanks! That was it. Once I changed that setting, the higher resolution covers were available. Man, learning something new every day with Calibre...
Ravensknight is offline   Reply With Quote
Old 06-06-2017, 01:28 PM   #27
lbschenkel
Enthusiast
lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'lbschenkel has never once had to say 'it's on the tip of my tongue...'
 
Posts: 40
Karma: 127198
Join Date: Aug 2011
Location: Malmö, Sweden
Device: Kobo Aura 1, Kindle DXG, Kindle PW2
I have published a new version for testing, 0.3.0, that automatically finds ASINs via goodreads.com (Amazon disabled in this version). You can compare it with version 0.2.0 (the one from "Nicolas F") and compare the results. I'm trying to determine the difference in results from both sites and if it's necessary to scrape both.

As usual, any feedback is more than welcome.
lbschenkel is offline   Reply With Quote
Old 06-07-2017, 04:52 AM   #28
Nicolas F
Groupie
Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.
 
Posts: 161
Karma: 1842
Join Date: Jan 2016
Device: Kobo Glo HD
Running the two versions side by side, every time the goodreads version could at least find the same covers or found more. So it doesn't seem necessary to scrape both (as stated above I believe that since amazon bought goodreads the database are at least partially interconnected)

It could be interesting to scrape the other languages amazon websites since goodreads have a very good database of english titles but isn't has good for foreign editions (searching for french titles in my case). But I haven't included it in what I coded. It could be done with an option to chose which stores to use.

Edit: all my books have a goodreads id, so the plugin is searching using this id.

Last edited by Nicolas F; 06-07-2017 at 04:58 AM.
Nicolas F is offline   Reply With Quote
Old 06-07-2017, 04:59 AM   #29
Dopedangel
Wizard
Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.
 
Dopedangel's Avatar
 
Posts: 1,759
Karma: 30063305
Join Date: Dec 2006
Location: Singapore
Device: Boyue
Quote:
Originally Posted by Nicolas F View Post
This is really good! I didn't know it was possible to get a high res cover this easily!

Since I don't set ASIN for the books in my Calibre library I played around and made a version that use the title and author name to search for the ASIN on amazon (I used the amazon metadata plugin from Calibre). I will put it on github.

It will probably need testing, but it's working for me so far!

I also changed the name because since it was too long the cover size wasn't showing.

Thanks for your work
Thanks it works for most books though I have to say google image gives me better results it has improved a lot as out of 10 books I tried google found 9 covers amazon found 8 but 1 of those was not in english.
Dopedangel is offline   Reply With Quote
Old 06-07-2017, 05:09 AM   #30
Nicolas F
Groupie
Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.
 
Posts: 161
Karma: 1842
Join Date: Jan 2016
Device: Kobo Glo HD
Quote:
Originally Posted by Dopedangel View Post
Thanks it works for most books though I have to say google image gives me better results it has improved a lot as out of 10 books I tried google found 9 covers amazon found 8 but 1 of those was not in english.
I don't know wich version you tried, the one in the post you cited is not the latest. lbschenkel made a new one that scrapes goodreads to find the ASIN. It can find more covers (but it will also find more covers in the wrong language)
Nicolas F is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Metadata Source Plugin] Amazon.de karlheinzbehr Plugins 1 06-21-2016 10:10 AM
[Metadata Source Plugin] Question: Amazon.com silbaer Calibre 13 12-31-2015 12:12 PM
[Metadata Source Plugin] Amazon.CN fated Plugins 0 11-20-2014 04:59 PM
Amazon Metadata source plugin not working Stormvision Plugins 3 05-03-2013 08:20 AM
[Metadata Source Plugin] Amazon.it nandocuci Plugins 2 05-18-2011 02:36 AM


All times are GMT -4. The time now is 12:10 PM.


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