|
|
#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 09:53 AM. |
|
|
|
|
|
#2 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,282
Karma: 62000000
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 | |
|
|
|
|
#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 |
|
|
|
|
|
#4 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,036
Karma: 30277960
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 07:14 PM. |
|
|
|
|
|
#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 | |
|
|
|
|
#6 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,631
Karma: 28549046
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())" |
|
|
|
|
|
#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. |
|
|
|
|
|
#8 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,631
Karma: 28549046
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 08:47 AM |
| Download Error for 7.57 | natjen05 | Devices | 5 | 04-28-2011 03:32 PM |
| Download Error. | cloud999 | Calibre | 1 | 11-12-2010 02:41 AM |
| Download Error | Jean | Calibre | 4 | 05-15-2009 10:32 PM |
| Download Error | rubikscube99 | Amazon Kindle | 5 | 03-15-2009 06:24 PM |