![]() |
#46 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 631
Karma: 7544080
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 |
![]() |
![]() |
![]() |
#47 |
Junior Member
![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
#48 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 631
Karma: 7544080
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).
|
![]() |
![]() |
![]() |
#49 |
Junior Member
![]() 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. |
![]() |
![]() |
![]() |
#50 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
Quote:
![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#51 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Apr 2016
Device: Kobo Glo HD
|
Great! Thanks a lot!
|
![]() |
![]() |
![]() |
#52 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 631
Karma: 7544080
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?
|
![]() |
![]() |
![]() |
#53 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
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. |
![]() |
![]() |
![]() |
#54 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 631
Karma: 7544080
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.
|
![]() |
![]() |
![]() |
#55 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,242
Karma: 23446430
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.
|
![]() |
![]() |
![]() |
#56 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 631
Karma: 7544080
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. |
![]() |
![]() |
![]() |
#57 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 5090
Join Date: Jun 2009
Device: Gen3, Kobo glow
|
|
![]() |
![]() |
![]() |
#58 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#59 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,242
Karma: 23446430
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.
|
![]() |
![]() |
![]() |
#60 | |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Oct 2016
Device: Nook simple touch
|
Quote:
![]() I'll definitely submit a bug report later today. I was confused since there is an option in the plugin: "import metadata from comicinfo.xml"... Again, my thanks for your attention. Could you please clarify what kind of "samples" would be most useful? I assume you mean a couple of small comic files? Cheers! |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Zotero Metadata Importer | DaltonST | Plugins | 291 | 08-07-2023 12:38 PM |
[GUI Plugin] Comicalibre - Comic Vine metadata processor | Pewsplosions | Plugins | 1 | 12-18-2022 09:16 AM |
[GUI Plugin] Clean Metadata | WS64 | Plugins | 28 | 01-06-2022 08:09 PM |
Call fetch/download metadata from GUI plugin | BeckyEbook | Development | 0 | 02-03-2017 06:51 PM |
Getting custom metadata field in GUI plugin | SauliusP. | Development | 7 | 02-11-2012 01:31 AM |