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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-16-2015, 03:11 PM   #46
dickloraine
Guru
dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.
 
Posts: 625
Karma: 7543718
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
Unfortunatly no. Rar is not free Software. They allow extraction but compression is only possible with Rar itself. I don't own it and even then, it would have to be called from outside calibre and would only work for people with rar.

Don't know why you have problems with zip. I don't own a mac, but zip is much more common than rar and should be working on every system. Maybe there is some error in the original files you use. Rezipping them could maybe help in the same way as compressing them to rar. Or you could zip them uncompressed. You don't save much space by compressing jpgs, because they are already compressed in a special way for pictures.

As I said, I don't know Mac OS, but the last possibility would be, to write a small batch script (action script on mac?) which you run via "open with" on the zips. Calibre has command line tools, with which you could add the cbr to the library. On windows it would look something like this:

Code:
md "%~dp1convert"
%~d1
cd "%~dp1"
7z.exe x "%~n1.cbz" "\convert"
cd convert
rar whatever
set dir=%~p1
for /F "tokens=2 delims=(" %%i in ("%dir%") do set id=%%i
set id=%id:~0,-2%
calibredb add_format %id% "%~n1.cbr"
cd..
rmdir /s /q convert
dickloraine is offline   Reply With Quote
Advert
Old 12-18-2015, 01:07 AM   #47
ben_marko
Junior Member
ben_marko began at the beginning.
 
ben_marko's Avatar
 
Posts: 2
Karma: 10
Join Date: Dec 2015
Device: iPad mini (2nd Gen), Galaxy Tab3
Yes, possible, I have had some problems with my HD lately. Four corrupted directories in a little over 5 months. I didn't think it could be related, though.

I didn't know that about rar, thanks for the tip.
ben_marko is offline   Reply With Quote
Old 04-05-2016, 07:06 PM   #48
dickloraine
Guru
dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.
 
Posts: 625
Karma: 7543718
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
I had some time and did a little work on the plugin. Apart from some major internal refactoring I added the possibility to embed the calibre cover into a comic (please be aware, that this is a rough solution, there could be edge cases), options to change the behaviour of the toolbar menu and translation support (currently only english and german).
dickloraine is offline   Reply With Quote
Old 04-07-2016, 05:23 AM   #49
Aquamarine
Junior Member
Aquamarine began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2016
Device: Kobo Glo HD
Thanks for the plugin. It worked great until now, but since Version 1.3 I get an "AttributeError: 'NoneType' object has no attribute 'title'" when I try to add the metadata to a cbz that has no metadata. Updating existing metadata still works.

Here is the traceback:

Traceback (most recent call last):
File "calibre_plugins.EmbedComicMetadata.ui", line 94, in main_menu_triggered
File "calibre_plugins.EmbedComicMetadata.main", line 50, in embed_into_comic
File "calibre_plugins.EmbedComicMetadata.main", line 108, in iterate_over_books
File "calibre_plugins.EmbedComicMetadata.main", line 41, in _embed_into_comic
File "calibre_plugins.EmbedComicMetadata.comicmetadata" , line 83, in embed_cix_metadata
File "calibre_plugins.EmbedComicMetadata.comicinfox ml", line 56, in stringFromMetadata
File "calibre_plugins.EmbedComicMetadata.comicinfox ml", line 90, in convertMetadataToXML
AttributeError: 'NoneType' object has no attribute 'title'

I have calibre 2.54.
Aquamarine is offline   Reply With Quote
Old 04-07-2016, 06:04 AM   #50
dickloraine
Guru
dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.
 
Posts: 625
Karma: 7543718
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
Quote:
Originally Posted by Aquamarine View Post
Thanks for the plugin. It worked great until now, but since Version 1.3 I get an "AttributeError: 'NoneType' object has no attribute 'title'" when I try to add the metadata to a cbz that has no metadata. Updating existing metadata still works.

Here is the traceback:

Traceback (most recent call last):
File "calibre_plugins.EmbedComicMetadata.ui", line 94, in main_menu_triggered
File "calibre_plugins.EmbedComicMetadata.main", line 50, in embed_into_comic
File "calibre_plugins.EmbedComicMetadata.main", line 108, in iterate_over_books
File "calibre_plugins.EmbedComicMetadata.main", line 41, in _embed_into_comic
File "calibre_plugins.EmbedComicMetadata.comicmetadata" , line 83, in embed_cix_metadata
File "calibre_plugins.EmbedComicMetadata.comicinfox ml", line 56, in stringFromMetadata
File "calibre_plugins.EmbedComicMetadata.comicinfox ml", line 90, in convertMetadataToXML
AttributeError: 'NoneType' object has no attribute 'title'

I have calibre 2.54.
Thanks for the bug report. This is now fixed
dickloraine is offline   Reply With Quote
Advert
Old 04-07-2016, 11:32 AM   #51
Aquamarine
Junior Member
Aquamarine began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2016
Device: Kobo Glo HD
Great! Thanks a lot!
Aquamarine is offline   Reply With Quote
Old 08-25-2016, 09:50 AM   #52
cry8wolf9
Junior Member
cry8wolf9 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2014
Device: galaxy note 2
does this plugin still work im getting failed every time i try to use it
cry8wolf9 is offline   Reply With Quote
Old 08-27-2016, 06:54 PM   #53
dickloraine
Guru
dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.
 
Posts: 625
Karma: 7543718
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
Works just fine for me. Can you provide more informations? The error message, what you tried to do etc?
dickloraine is offline   Reply With Quote
Old 09-28-2016, 09:09 AM   #54
magphil
Connoisseur
magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!
 
Posts: 54
Karma: 5090
Join Date: Jun 2009
Device: Gen3, Kobo glow
Issue with ComicRack after embedding ComicInfo.xml with the plug-in

When I embed metada in a cbz, ComicRack is unable to read the book.

I have to manually extract the cbz and recreate it with winrar to make it readable.

When the source file is a cbr, the cbz you convert on the fly does not have this issue.

So it seems that the code you are using to modify existing cbz files has an issue.

ComickRack is the only comic reader I know which is actually using the data in ComicInfo.xml to sort the books by series and I use it on my ipad.
magphil is offline   Reply With Quote
Old 10-07-2016, 08:57 AM   #55
dickloraine
Guru
dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.
 
Posts: 625
Karma: 7543718
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
Hm, looks like deleting files inside a zip file can lead to that problem. Only solution seems to be to extract the cbz and rebuild it. That will make embedding metadata much slower, but better than corrupted files. Shouldn't take too long implementing the changes.
dickloraine is offline   Reply With Quote
Old 10-07-2016, 10:05 AM   #56
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: 31,135
Karma: 7777777
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@dickloraine: Look at the safe_replace() function in calibre.utils.zipfile this is what calibre uses to update the OPF inside EPUB files safely, and relatively efficiently.
kovidgoyal is online now   Reply With Quote
Old 10-07-2016, 03:06 PM   #57
dickloraine
Guru
dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.
 
Posts: 625
Karma: 7543718
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
Thanks, I'm now using that function
The new version is now available from the start post.
dickloraine is offline   Reply With Quote
Old 10-08-2016, 09:58 AM   #58
magphil
Connoisseur
magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!magphil , Klaatu Barada Niktu!
 
Posts: 54
Karma: 5090
Join Date: Jun 2009
Device: Gen3, Kobo glow
Quote:
Originally Posted by dickloraine View Post
Thanks, I'm now using that function
The new version is now available from the start post.
Thanks a lot.

It will make life easier for me
magphil is offline   Reply With Quote
Old 10-15-2016, 08:24 AM   #59
JoshuaAryeh
Junior Member
JoshuaAryeh began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2016
Device: Nook simple touch
A plaintive request for guidance...

I'm migrating off of Win10 - since Comicrack (which I've been using extensively) doesn't play well with Linux, I wanted to find some way to get my painstakingly entered metadata preserved. Since I'd already been using Calibre for my ebook collection, this plugin seemes perfect!

Install worked like a charm and I configured it to "import metadata from comicinfo.xml". The issue is that the import seems to be hit-or-miss. Sometimes I get the comic summary from Comicrack showing up in Calibre's comments fields, sometimes nothing comes through. And I don't seem to be able to find where the genre and tag field info went after import...

All of my files are ain .cbz format, FWIW.

I'd appreciate any help you could offer - I appreciate all the work that's gone into this plugin and really want to make it work!

Many thanks, my friends!

Last edited by JoshuaAryeh; 10-15-2016 at 08:57 AM. Reason: Clarity
JoshuaAryeh is offline   Reply With Quote
Old 10-15-2016, 01:27 PM   #60
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: 31,135
Karma: 7777777
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
THis plugin is for writing metadata not reading it. Reading of ComicRack metadata is builtin to calibre. If you find it is failing for some books, opena bug report and attach a couple of samples and I will take a look.
kovidgoyal is online now   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
[Metadata Writer Plugin] KePub Metadata Writer jgoguen Plugins 53 06-26-2016 02:35 AM
Failed to embed metadata mihal.v Library Management 6 07-11-2015 12:21 PM
embed metadata option mytrivo Library Management 3 06-24-2015 01:34 AM
Regarding using metadata objects in identify method of metadata download plugin api aprekates Development 1 07-06-2014 03:35 AM
[Metadata Download Plugin] Goodreads Metadata **Deprecated** kiwidude Plugins 30 04-23-2011 02:10 PM


All times are GMT -4. The time now is 01:31 PM.


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