Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 09-18-2015, 08:23 AM   #1
wrzx
Junior Member
wrzx began at the beginning.
 
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
here is example link to image which is running good from every browser but generating error from above in calibre
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.
wrzx is offline   Reply With Quote
Old 09-18-2015, 08:43 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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
theducks is offline   Reply With Quote
Advert
Old 09-18-2015, 08:52 AM   #3
wrzx
Junior Member
wrzx began at the beginning.
 
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
wrzx is offline   Reply With Quote
Old 09-18-2015, 06:08 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
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.
BetterRed is offline   Reply With Quote
Old 09-21-2015, 08:59 AM   #5
wrzx
Junior Member
wrzx began at the beginning.
 
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
wrzx is offline   Reply With Quote
Advert
Old 09-21-2015, 09:13 AM   #6
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: 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())"
kovidgoyal is offline   Reply With Quote
Old 09-22-2015, 02:45 AM   #7
wrzx
Junior Member
wrzx began at the beginning.
 
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.
Attached Thumbnails
Click image for larger version

Name:	calibre.png
Views:	255
Size:	37.7 KB
ID:	142194  
wrzx is offline   Reply With Quote
Old 09-22-2015, 04:38 AM   #8
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: 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
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

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


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


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