|
Welcome,
Guest
|
|
Looking for some help moving data between fields.
(1 viewing) (1) Guest
Try to get help from other ComicRack users
|
TOPIC: Looking for some help moving data between fields.
Looking for some help moving data between fields. 1 year, 7 months ago #8775
|
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
|
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
|
#@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 |
|
[FTP DOWN] Something is hidden for guests. Please log in or register to see it.
Last Edit: 1 year, 7 months ago by quidam.
|
Re:Looking for some help moving data between fields. 1 year, 7 months ago #8828
|
Now hershal, shouldn't you say thanks to our quidam here ?
|
Now Playing: The ComicRack Manual (Online) |
Re:Looking for some help moving data between fields. 1 year, 7 months ago #8829
|
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
|
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.
|
|
|
|
Time to create page: 0.52 seconds
