Welcome, Guest
Python Scripts for ComicRack

TOPIC: ComicBookInfo Injector

Re: ComicBookInfo Injector 6 years 9 months ago #12289

  • perezmu
  • perezmu's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 1114
  • Thank you received: 64
  • Karma: 51
Surfal666 wrote:
If I'm unemployed much longer, I might just write my own Comic reader app.

which of course will support comicinfo.xml...:P
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 9 months ago #12295

  • Surfal666
  • Surfal666's Avatar
  • Offline
  • Senior Boarder
  • Posts: 64
  • Thank you received: 4
  • Karma: 2
Heck yeah... Now if only the CVDBID was in the ComicInfo.xml...
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 9 months ago #12297

  • perezmu
  • perezmu's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 1114
  • Thank you received: 64
  • Karma: 51
It may be... If you choose to save it to the notes field, there it is! It can be saved in both, the Tag field, and the Notes field. The tags do not make it to the comicinfo.xml, but the notes do!
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 9 months ago #12299

One more idea: if one installs Perl, it should be possible to use a Python script to make a call to the .exe and pass it the FilePath of a selected book from within CR. Should make it easier to selectively mark books
The administrator has disabled public write access.
The following user(s) said Thank You: Surfal666

Re: ComicBookInfo Injector 6 years 9 months ago #12310

  • Surfal666
  • Surfal666's Avatar
  • Offline
  • Senior Boarder
  • Posts: 64
  • Thank you received: 4
  • Karma: 2
DouglasBubbletrousers wrote:
One more idea: if one installs Perl, it should be possible to use a Python script to make a call to the .exe and pass it the FilePath of a selected book from within CR. Should make it easier to selectively mark books

Now that's an excellent idea. Wrapper plugin is attached.
Attachments:
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 8 months ago #12767

  • bionic1234
  • bionic1234's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
First of all thanks for sharing this plugin, it sounds like it will do exactly what I am looking for.
Unfortunately I'm having some troubles using the script. I've installed the plugin for ComicRack and restarted ComicRack. When I select on a comic and choose "Inject ComicBookInfo" from Automation a pop-up window appears "Update ComicBookInfo for 1 book. Procced?". I select "Yes", and I receive the following error:
"Threw an exception: [Errno 22] The system cannot find the file specified while processing..."

Notes:
OS = Windows Vista SP2
ComicRack = V 0.9.136 32bit
Comics reside on network drive (although I have tried the plugin with locally stored comics and experienced the same result)

Any suggestions?
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 8 months ago #12769

  • Surfal666
  • Surfal666's Avatar
  • Offline
  • Senior Boarder
  • Posts: 64
  • Thank you received: 4
  • Karma: 2
Let me start with the basics:

1) Did you install ActivePerl?
2) Did you install cb-xmltocbi.pl?
3) Did you install them in the locations suggested on frcooper.com/wrk/cbii/ ?
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 8 months ago #12790

  • bionic1234
  • bionic1234's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Thanks very much for this.
As recommended I went back to review the notes on frcooper.com/wrk/cbii/.
Initially I had only downloaded and installed the cbii-wrapper-1.0.crplugin.

In case anyone else has difficulties these were the steps that I took to resolve:
1) Downloaded cbii-wrapper-1.0.crplugin and double clicked to initiate install into ComicRack

2) Downloaded ActivePerl from here
www.activestate.com/activeperl/downloads

3) Downloaded cb-xmltocbi.pl script and placed in the directory C:\Perl\site\bin

5) Ran Perl Package Manager and added the following packages:
DateTime
DateTime::Format::Strptime
Error

The following two packages were already installed:
Archive::Zip
JSON - although I did upgrade to the current release

5) Once completed I opened ComicRack and tried the plugin once again and it worked perfectly

Just one more question; one of the caveats suggests NOT to select a large group of books, I've tried selecting two books at a time which seems to work but at this rate it could take quite a while to convert the entire library. Any suggestions for a maximum number of books that could be selected simultaneously, or would the full integration with Windows Explorer be a better option for batch processing?
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 8 months ago #12792

  • Surfal666
  • Surfal666's Avatar
  • Offline
  • Senior Boarder
  • Posts: 64
  • Thank you received: 4
  • Karma: 2
The plugin spawns an instance of the perl interpreter for each book selected, so the limit is really dependent on your hardware / running software configuration. I've done 64 books at a time on an opteron 165 with 2G RAM and Win7 32bit.

Try 2 books, then 4, then 8, and so on until you're done, or something goes wrong. :)

You're welcome.
The administrator has disabled public write access.

Re: ComicBookInfo Injector 6 years 8 months ago #12796

  • bionic1234
  • bionic1234's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Thanks again
The administrator has disabled public write access.
Time to create page: 0.280 seconds

Who's Online

We have 230 guests and 2 members online