Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 02-20-2014, 05:46 AM   #1
snipe2004
Junior Member
snipe2004 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2013
Device: Pc - Linux - Calibre
Failing to import cover from most CBR

Hi guys,

I use Calibre for a while to store my comic books. That means I use three kinf of files : PDF, CBR and CBZ. I never had a problem with that.

I recently upgraded to Ubuntu 13.10, and then imported new comic books into Calibre. From this time, almost all CBR files didn't receive a cover.
I saw that it was supposed to be fixed in 2011, and some workarounds such as "bulk editing" and asking Calibre to get the cover from the file didn't work.

I'm quite stuck... I started downloading covers from Internet, but 1) I don't want to do this by hand for 600+ comic books and 2) a lot of covers aren't even found on the Internet.

I was wondering about a dependency missing, but I got unrar, rar and p7zip-full installed. I didn't change anything in the preferences of Calibre at first, then I went to have a look if some plugin were disabled or whatever, but nothing. By the way, I can perfectly read those files using evince, as usual.

When trying to import manually the cover from file in "simple edit mode", I get the following message : "impossible to read the cover from CBR format".

Of course, I use the latest version of Calibre.
At first, I see two points of difference between "before, CBR cover ok" and "now, CBR cover ko" : I upgraded to Ubuntu 13.10 and in the same time upgraded to the latest Calibre, coming from a version a bit older.

Any idea ?

Last edited by snipe2004; 02-20-2014 at 05:50 AM.
snipe2004 is offline   Reply With Quote
Old 02-20-2014, 05:58 AM   #2
BetterRed
null operator
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: 3,403
Karma: 1957866
Join Date: Mar 2012
Location: NSW Australia
Device: none
@snipe2004 - Did you try going back to the version of calibre you were previously using. That might narrow the problem down to ubuntu or calibre. I'm assuming its easier for you to downgrade calibre than it would be ubuntu.

BR
BetterRed is online now   Reply With Quote
Old 02-20-2014, 06:05 AM   #3
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: 25,919
Karma: 5035037
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Run

ebook-meta --get-cover cover.jg file.cbr

in a terminal, that should tell you what the problem is.
kovidgoyal is offline   Reply With Quote
Old 02-21-2014, 01:05 PM   #4
snipe2004
Junior Member
snipe2004 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2013
Device: Pc - Linux - Calibre
Hi and thanks for your help.

Quote:
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/customize/ui.py", line 334, in get_file_type_metadata
mi = plugin.get_metadata(stream, ftype.lower().strip())
File "/usr/lib/calibre/calibre/customize/builtins.py", line 153, in get_metadata
ret = extract_first(stream)
File "/usr/lib/calibre/calibre/utils/unrar.py", line 187, in extract_first_alphabetically
names_ = [x for x in names(stream) if os.path.splitext(x)[1][1:].lower() in
File "/usr/lib/calibre/calibre/utils/unrar.py", line 154, in names
f = RARFile(stream)
File "/usr/lib/calibre/calibre/utils/unrar.py", line 92, in RARFile
%err)
RuntimeError: Failed to load unrar module with error: No module named unrar
But unrar is there... If I do a :
Quote:
unrar e file.cbr
, I got all the jpg...
snipe2004 is offline   Reply With Quote
Old 02-21-2014, 02:36 PM   #5
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
Posts: 5,828
Karma: 9077938
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch (Wifi only)
Are you by any chance running the version from the software center?

The latest version is 1.25, but you are probably running 1.0.


The self-contained binaries can be found at http://calibre-ebook.com/download_linux and are pretty much guaranteed to solve the problem.

Kovid does not support the distro packages: "Please do not use your distribution provided calibre package, as those are often buggy/outdated. Instead use the Binary install described below. "
eschwartz is offline   Reply With Quote
Old 03-08-2014, 05:28 PM   #6
snipe2004
Junior Member
snipe2004 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2013
Device: Pc - Linux - Calibre
For God sake...
You're right! Sorry guys, I never installed it from my distro since so many years, and I don't know why I did so this time :/

Now, getting them one by one to check for the cover and regenerate it from file.

Thanks.
And sorry.
snipe2004 is offline   Reply With Quote
Old 03-08-2014, 05:57 PM   #7
BetterRed
null operator
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: 3,403
Karma: 1957866
Join Date: Mar 2012
Location: NSW Australia
Device: none
@snipe2004 - Assuming only CBR or CBZ, then this should work

Search cover:False - Select all books
Set Metadata Bulk Edit-Change cover->Set from ebook file radio button on
Click OK - Job done

BR
BetterRed is online now   Reply With Quote
Old 03-14-2014, 04:35 AM   #8
snipe2004
Junior Member
snipe2004 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2013
Device: Pc - Linux - Calibre
Thanks!

I could'nt do so, 'cause I had some older CBR with a customised cover.
So I simply filter my ebooks by date of the last change, displaying only cbr ones, and did it one by one - it was not that long, only ten minutes.

Thanks,

Snipe
snipe2004 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import Author And Title From Filename & Import Other Tags And Cover From File DazJWood Library Management 22 07-18-2014 09:22 AM
Import failed Error:404 when attempting to import from Calibre to Stanza dvond Apple Devices 0 05-13-2011 03:00 PM
CBR cover detection richreads Calibre 0 04-10-2011 03:23 PM
CBR convert to EPUB failing. skullmonger Conversion 1 02-08-2011 09:33 AM
Import cover SUSGOD Gen3 Developer's Corner 21 01-24-2008 09:05 AM


All times are GMT -4. The time now is 06:04 PM.


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