Welcome, Guest
Python Scripts for ComicRack

TOPIC: Standardize Library files

Re:Standardize Library files 8 years 6 months ago #3242

  • chaoshunter
  • chaoshunter's Avatar
  • Offline
  • Junior Boarder
  • Posts: 29
  • Karma: 0
:( Still not working. It works fine on any series without a volume number (in the ComicRack field) but as soon as I try it on one that does, it gives the same "exception" error.

File Attachment:

File Name: Standardiz...4c41.zip
File Size:1 KB
The administrator has disabled public write access.

Re:Standardize Library files 8 years 6 months ago #3243

  • Quaraxkad
  • Quaraxkad's Avatar
  • Offline
  • Senior Boarder
  • Posts: 61
  • Karma: 2
chaoshunter wrote:
:( Still not working. It works fine on any series without a volume number (in the ComicRack field) but as soon as I try it on one that does, it gives the same "exception" error.

I suspect it's just a simple mistake in the code, but I don't see what it is. It would help to know what the actual reason for the error is, the one ComicRack normally gives you doesn't tell you much. We'll have to add some console output lines to be able to tell where it goes wrong. Add -ssc to the end of your ComicRack shortcut, run CR with that shortcut, and then try this script on a file with and without a volume number, one at a time. Paste the output here. I added a few lines to show the directory before and after the volume number is checked and added to the path.

File Attachment:

File Name: Standardiz...6f43.zip
File Size:1 KB
The administrator has disabled public write access.

Re:Standardize Library files 8 years 6 months ago #3245

  • chaoshunter
  • chaoshunter's Avatar
  • Offline
  • Junior Boarder
  • Posts: 29
  • Karma: 0
I've used the one you attached. Here's what I get:
Initalzing method 'RenumberBooks' from 'Autonumber.py'


Initalzing method 'BuildOpenWithMenuItem' from 'BuildOpenWithMenuItem.py'


Initalzing method 'CommitProposed' from 'CommitProposed.py'


Initalzing method 'ExtractFirstPage' from 'ExtractFirstPage.py'


Initalzing method 'GuidedRename' from 'GuidedRename.py'


Initalzing method 'ImportComicInfo' from 'ImportComicInfo.py'


Initalzing method 'MoveFiles' from 'MoveFiles.py'


Initalzing method 'OpenWithCDisplay' from 'OpenWithCDisplay.py'


Initalzing method 'ProposeChanges' from 'ProposeChanges.py'


Initalzing method 'SaveCSVList' from 'Sample.py'


Initalzing method 'RenameBookFiles' from 'Sample.py'


Initalzing method 'StandardizeLibrary' from 'StandardizeLibrary.py'

Calling 'StandardizeLibrary'...

Initial compilation of 'StandardizeLibrary.py'

Before: E:\My Documents\My Comics\Marvel Comics\Marvel Universe\X-Force\

Exception has been thrown by the target of an invocation.

Calling 'StandardizeLibrary'...

Before: E:\My Documents\My Comics\Marvel Comics\Marvel Universe\X-Force\

Exception has been thrown by the target of an invocation.

Calling 'StandardizeLibrary'...

Before: E:\My Documents\My Comics\DC Comics\DC Universe\Batman - Battle For The Cowl\

Exception has been thrown by the target of an invocation.

Battle for the Cowl has no volume. X-Force does have a volume number (3). Both of them didn't work this time around.
Last Edit: 8 years 6 months ago by chaoshunter.
The administrator has disabled public write access.

Re:Standardize Library files 8 years 6 months ago #3246

  • Quaraxkad
  • Quaraxkad's Avatar
  • Offline
  • Senior Boarder
  • Posts: 61
  • Karma: 2
chaoshunter wrote:
Battle for the Cowl has no volume. X-Force does have a volume number (3). Both of them didn't work this time around.

Looks like it's a problem converting the integer value of book.Volume to a string. This time, it failed on a book with no volume because of this line:
print "Volume: "+book.Volume

I don't know Python, so I'm just guessing that it doesn't convert numbers to strings automatically. It's trying to do the math instead, and it doesn't know how to add numbers and letters. Here's an updated script to try.

File Attachment:

File Name: Standardiz...b3cd.zip
File Size:1 KB
Last Edit: 8 years 6 months ago by Quaraxkad.
The administrator has disabled public write access.

Re:Standardize Library files 8 years 6 months ago #3249

  • chaoshunter
  • chaoshunter's Avatar
  • Offline
  • Junior Boarder
  • Posts: 29
  • Karma: 0
:) :) :) Thank you! It works perfectly!

Thank you DouglasBubbletrousers for the amazing script and thank you Quaraxkad for your amazing help!
The administrator has disabled public write access.
Time to create page: 0.170 seconds

Who's Online

We have 229 guests and 9 members online