Welcome, Guest
Python Scripts for ComicRack

TOPIC: ComicBookInfo Injector

Re: ComicBookInfo Injector 6 years 6 months ago #12831

  • headstone1734
  • headstone1734's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 1
  • Karma: 0
Hi all,

I'm trying to get this script to work and have run into a small problem.

I followed the steps Bionic posted but i get the following error when i run the script on a file :

"Threw an exception : [Erno 22] The system cannot find the file specified for processing" plus the path to the comic book file.

Tried it on multiple files and get the same result.

did i miss a step?

As well, does this script just work on cbz files or should it work on cbr files as when i try i cbr file i get no popup at all.

Guess i should convert my files to cbz files anyway :)
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 6 months ago #12832

  • Surfal666
  • Surfal666's Avatar
  • Offline
  • Senior Boarder
  • Posts: 64
  • Thank you received: 4
  • Karma: 2
What's the path to the comic book? (There might be issues with spaces or non-ascii characters. I think I was safe about it, but until you get real world data, you can't be sure.)

CBZ only. The ComicBookInfo metadata format is totally dependent on it being a zip file.
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 6 months ago #12835

  • headstone1734
  • headstone1734's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 1
  • Karma: 0
I used the organize files and folders script to move all my comics to the way it likes them.

the file i tried is
f:\Comic Books\Dc Comics\Action Comics (2001)\Action Comics Vol.1938 #775 (March,2001).cbz

So all comics are in f:\Comic Books\Dc Comics or F:\Comic Books\Marvel etc.
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 6 months ago #12837

  • Surfal666
  • Surfal666's Avatar
  • Offline
  • Senior Boarder
  • Posts: 64
  • Thank you received: 4
  • Karma: 2
Ok - I'm not at my main computer, so I can't really test it but I don't see anything that looks glaringly wrong with that. (Is that a comma in the date?)

Can you confirm that the book is really a cbz, not just a renamed cbr?

if you're feeling brave, or are command line savvy, you could try running the perl script from a command prompt: cb-xmltocbi.pl "full path to comic.cbz" and see what happens...
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 6 months ago #12841

  • headstone1734
  • headstone1734's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 1
  • Karma: 0
so it worked at the command prompt if i did this :

F:\Comic Books\DC Comics\Action Comics (2001 Series)>k:\perl\site\bin\cb-xmltocb
i.pl "Action Comics Vol.1938 #775 (March, 2001).cbz"
Injecting ComicBookInfo for Action Comics Vol.1938 #775 (March, 2001).cbz

So seems like it could be the comicrack plugin that isn't sending the path correctly to the perl script...
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 1 month ago #16212

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 232
I tried again after a long time... couldn't make it work then, couldn't make it work now..



p.s. My Perl directory is C:\Program Files\Perl instead of the usual C:\Perl. Does this make any difference?


Edit: I got it working after all. Basically, the Perl file path was that was different. I corrected the path in the script .py file and it worked.

Now, another query:

It is not getting the Writers' name in the comments field. For example, for a file with this Info:



the comments (after running the script) read like this:
{"ComicBookInfo/1.0":{"series":"The Flash: Rebirth (2009)","title":"Lightning Strikes Twice","issue":"1","numberOfIssues":6,"publicationMonth":"6","publicationYear":"2009","publisher":"DC Comics","genre":"Mini-Series"},"appID":"X-ComicBookInfoInjector/100","lastModified":"2011-06-30 11:57:26 +0000"}
Now Playing: The ComicRack Manual (Online)

See my new comics & gadgets on: Tumblr!
Last Edit: 6 years 1 month ago by 600WPMPO.
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 1 month ago #16213

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 232
More problems....

ComicBookLover does not recognize files on which the ComicBookInfo Injector script has been run.

For example, here I have 2 CBZ files: Green Arrow 1 & 2. The script has been run on the first file, while the 2nd file is untouched.

CBL successfully adds the untouched file:



... while it hangs on to the file that has the script ran on it...



Both the files are working fine in ComicRack. I've tried this on many files, but CBL always hangs up on the file where the script has been run.

Any clues..?
Now Playing: The ComicRack Manual (Online)

See my new comics & gadgets on: Tumblr!
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 1 month ago #16217

  • Surfal666
  • Surfal666's Avatar
  • Offline
  • Senior Boarder
  • Posts: 64
  • Thank you received: 4
  • Karma: 2
It's been a while since i've touched this code (the dayjob became a nite-and-dayjob), but i'll look into making it a bit more robust.
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 1 month ago #16218

  • Surfal666
  • Surfal666's Avatar
  • Offline
  • Senior Boarder
  • Posts: 64
  • Thank you received: 4
  • Karma: 2
The hang on import with the desktop version of CBL was/is a known issue. See the caveats on frcooper.com/wrk/cbii/.

As best I can figure, there's a parsing bug in CBL application - the debugger can't trace through it.
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 1 month ago #16219

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 232
Surfal666 wrote:
The hang on import with the desktop version of CBL was/is a known issue. See the caveats on frcooper.com/wrk/cbii/
The desktop version of ComicBookLover will not import the files. It just hangs...
Surely this can be improved upon...? :(
Now Playing: The ComicRack Manual (Online)

See my new comics & gadgets on: Tumblr!
The administrator has disabled public write access.
Time to create page: 0.471 seconds

Who's Online

We have 208 guests and 7 members online