09-18-2015, 08:23 AM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2015
Device: none
|
Cover download error
Hi,
im trying to create metadata search plugin and when it comes to downloading cover image it finished with this error Code:
Traceback (most recent call last): File "site-packages\calibre\ebooks\metadata\sources\covers.py", line 63, in process_result File "site-packages\calibre\utils\magick\__init__.py", line 135, in load Exception: no decode delegate for this image format `' @ error/blob.c/BlobToImage/358 direct url xtrance.info/new/?mainpage=file&subpage=publication_image&id=7730 Can anybody tell me how to make it works? Thanks Last edited by wrzx; 09-18-2015 at 08:53 AM. |
09-18-2015, 08:43 AM | #2 |
Well trained by Cats
Posts: 29,785
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
that link is a 404 for me
|
Advert | |
|
09-18-2015, 08:52 AM | #3 |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2015
Device: none
|
Strange...from embedded link it dont works.
this is direct url xtrance.info/new/?mainpage=file&subpage=publication_image&id=7730 |
09-18-2015, 06:08 PM | #4 |
null operator (he/him)
Posts: 20,558
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
works for me in vanilla chrome and overweight firefox. Maybe xtrance was off air for bit.
try putting an "http://" in front of the address. Last edited by BetterRed; 09-18-2015 at 06:14 PM. |
09-21-2015, 08:59 AM | #5 |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2015
Device: none
|
in plugin i tried with and without http:// on begining of link but i got error on every version
|
Advert | |
|
09-21-2015, 09:13 AM | #6 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That error indicates what you are getting is not an image, most likely it is some html page. Download it programmatically and see.
calibre-debug -c "from calibre import browser; br = browser(); print(br.open(url).read())" |
09-22-2015, 02:45 AM | #7 |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2015
Device: none
|
Thanks for replay Kovid.
I tried what you suggest but it looks that response is normal image in JPG format. See attached screenshot. |
09-22-2015, 04:38 AM | #8 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Then its likely the server has implemented some form of scraping protection. You will need ot run calibre from source and save the response by modify the code in the file pointed to in the error message. Instructions for setting upa calibre development environment are in the user manual
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error download metadata end cover | tekkkkkk | Calibre | 5 | 12-15-2012 07:47 AM |
Download Error for 7.57 | natjen05 | Devices | 5 | 04-28-2011 02:32 PM |
Download Error. | cloud999 | Calibre | 1 | 11-12-2010 01:41 AM |
Download Error | Jean | Calibre | 4 | 05-15-2009 09:32 PM |
Download Error | rubikscube99 | Amazon Kindle | 5 | 03-15-2009 05:24 PM |