Wednesday February 08 , 2012
Text Size
   
Welcome, Guest
Username Password: Remember me

Looking for some help moving data between fields.
(1 viewing) (1) Guest
Try to get help from other ComicRack users
  • Page:
  • 1

TOPIC: Looking for some help moving data between fields.

Looking for some help moving data between fields. 1 year, 7 months ago #8775

  • hershal
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
A lot of my files have a 5 digit ID number at the beginning.
When I imported these into CR the ID number was pulled into the Series field.


There are 2 things that I need to do now:

1. Copy the first 5 characters from the Series field into another field (tags?).

2. Delete the first 6 characters (5 digits and a space) from the Series field.


Which, if any, scripts might help me in accomplishing these tasks.


Thanks.

Re: Looking for some help moving data between fields. 1 year, 7 months ago #8778

  • cYo
  • NOW ONLINE
  • Moderator
  • Posts: 2116
  • Karma: 109
You can modify the comic name parser script coming with ComicRack and move the id value while generating the proposed values.

Re:Looking for some help moving data between fields. 1 year, 7 months ago #8827

  • quidam
  • OFFLINE
  • Platinum Boarder
  • not for nom
  • Posts: 423
  • Karma: 28
#@Name  Copy Series to Tags
#@Hook  Books
#@Key  CopyFields
#@Description  Copy the first 5 characters from the Series field into Tags, then  Delete the first 6 characters from the Series field.

def RenameBookFiles(books):
  for book in books:
    book.Tags = book.ShadowSeries[0:5]
    book.Series = book.ShadowSeries[6:]


This should do what you want. Run CopyFields.crplugin and restart ComicRack. Then select comic(s), right click -> Automation -> Copy Series to Tags

File Attachment:

File Name: CopyFields.crplugin
File Size: 459
[FTP DOWN]
:pinch: Warning: Spoiler!
Last Edit: 1 year, 7 months ago by quidam.

Re:Looking for some help moving data between fields. 1 year, 7 months ago #8828

  • 600WPMPO
  • OFFLINE
  • Moderator
  • Posts: 2280
  • Karma: 114
Now hershal, shouldn't you say thanks to our quidam here ?

Re:Looking for some help moving data between fields. 1 year, 7 months ago #8829

  • {Oo}
  • OFFLINE
  • Platinum Boarder
  • Ohh, you touch my tralala... Hmm my ding ding dong
  • Posts: 521
  • Karma: 11
600WPMPO wrote:
Now hershal, shouldn't you say thanks to our quidam here ?


Leave him/her at least some time to post 600!
Anyway, quidam does it again!

Re:Looking for some help moving data between fields. 1 year, 7 months ago #8830

  • hershal
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Thanks to all for the help. It was nostalgic and entertaining learning a little python figuring out how to partition the string in the parser script but quidams script should now let me correct just the files with the ID numbers and not mess with how the rest of the files are treated.
  • Page:
  • 1
Time to create page: 0.52 seconds

Who's Online

We have 188 guests and 2 members online
  • kenjio
  • cYo

PIM

You are not logged in.