Welcome, Guest
General discussion about ComicRack

TOPIC: Comic Book Number formatting.

Comic Book Number formatting. 1 year 10 months ago #44500

  • Silentgray
  • Silentgray's Avatar
  • Offline
  • Senior Boarder
  • Posts: 41
  • Thank you received: 5
  • Karma: 0
So i am using the built in comic renumbering script in the Automation menu. As it is it grabs the number in the comic and places it in the file name. So for issue one it places #1 in the file name.

Example:
Avengers Arena V2013 #1 (2013).cbz
Avengers Arena V2013 #10 (2013).cbz
Avengers Arena V2013 #2 (2013).cbz
Avengers Arena V2013 #20 (2013).cbz

So when these are then moved to a folder locations they are organized as shown above and not #1 - #10.

Does anyone know how to chane the numbering scheme to pad in zeroes so that the numbers all show up as say 3 digit numbers?

#001
#002
....
#010
#011
....
#100

Any help would be appreciated. I would assume this a change to CRW itself and not a script.

Adding the script from the Python File

#
# Rename Book Files to 'Series Volume #Number (of Count) (Year)'
# Some processing is done to correctly handle missing parameters
#
#@Name Rename Files to 'Series Volume #Number (of Count) (Year)'
#@Hook Books
#@Description Script to rename the selected Books based on the meta data
def RenameBookFiles(books):
for book in books:
name = book.ShadowSeries
if name != "":
if book.ShadowVolume != -1:
name = name + " V" + str(book.ShadowVolume)
if book.ShadowNumber != "":
name = name + " #" + book.ShadowNumber
if book.ShadowCount != -1:
name = name + " (of " + str(book.ShadowCount) + ")"
if book.ShadowYear != -1:
name = name + " (" + str(book.ShadowYear) + ")"
book.RenameFile (name)


It looks like its calling out the value book.ShadowNumber and this does not have the padded zeroes. How could you get that value changed to see each number as a 3 digit number?


Thanks,
Last Edit: 1 year 10 months ago by Silentgray.
The administrator has disabled public write access.

Comic Book Number formatting. 1 year 10 months ago #44515

  • squeedps
  • squeedps's Avatar
  • Offline
  • Expert Boarder
  • Posts: 103
  • Thank you received: 4
  • Karma: 0
I use Library Organizer script to do that padding for me
I have to ask, what operating system are you using because, if memory serves, from Vista on, number ordering was resolved to correct that issue when files didn't have the padding
The administrator has disabled public write access.
Time to create page: 0.149 seconds

Who's Online

We have 314 guests and 5 members online