Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-09-2016, 06:21 AM   #1
StillReading
Enthusiast
StillReading began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Sep 2014
Device: none
[Metadata Source Plugin] Amazon.com not fetching all description texts

I've noticed that "Download metadata" in Calibre 2.48.0 Windows 64-bit doesn't work like in previous versions. I can't tell with which version the problem started.

Effect: "Download metadata" isn't downloading the complete description text. The description texts on Amazon are divided into three categories: "Short Description", "Review", and "About the Author". In previous versions, Calibre would fetch all three texts. Now it only fetches the text under "Short Description". This happens with the pugin set to "English" and "German". Examples are Abaddon's Gate: Book 3 of the Expanse (English, ISBN 9780748122981) and 23 Lügen, die sie uns über den Kapitalismus erzählen (German, ISBN 9783641041403). The plugin was set to the book's language (country) for each test.

A fix would be much appreciated, as copying/pasting and manually editing the descriptions is very time consuming (; .

Last edited by StillReading; 01-09-2016 at 06:27 AM.
StillReading is offline   Reply With Quote
Old 01-09-2016, 07:31 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,289
Karma: 27111238
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Amazon are now putting that content into a iframe that is populated dynamically via javascript. The silly part is that the actual content is present as a URL-encoded javascript variable in a script tag.

https://github.com/kovidgoyal/calibr...8ba0cf5c5bf828
kovidgoyal is offline   Reply With Quote
Advert
Old 01-09-2016, 07:41 AM   #3
StillReading
Enthusiast
StillReading began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Sep 2014
Device: none
Wow, thanks for the quick fix! Looking forward to the new version.

In addition: would you be willing or would it be possible/feasible to implement some additional parsing? One small "error" that crops up often with Amazon descriptions (and that I'm correcting manually) is spaces before end tags (like "<p>BlaBlaBla </p>). It would be nice if Calibre could get rid of these, but I can live with manual editing of course.
StillReading is offline   Reply With Quote
Old 01-09-2016, 07:56 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,289
Karma: 27111238
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Sorry, I'm not willing to take on responsibility for cleaning amazon's markup, that way lies madness.
kovidgoyal is offline   Reply With Quote
Old 01-09-2016, 08:02 AM   #5
StillReading
Enthusiast
StillReading began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Sep 2014
Device: none
Yeah, I can see what you mean by that (; . Not a big deal, I could probably even (half-) automate my comment editing with a RegEx search/replace operation. Thanks again for fixing the original problem.
StillReading is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Metadata Source Plugin] Skoob rodrigoccurvo Plugins 11 06-13-2019 06:44 PM
[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 07:49 AM.


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