Frustrated renaming

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
biased
Posts: 1
Joined: 21 Jun 2016, 22:08

Frustrated renaming

Post by biased »

I'm trying to mass rename files and it seems to be giving me a particularly tricky time due to the nature of some of way the files are named. However, this setup works in small numbers but say greater than 50 folders/files it just gums up if I press skip, enter in a name or otherwise don't do it exactly like it says. I've even tried moving the problematic folders/files out of the huge folder I'm doing and it just seems to keep finding seemingly random ones to pick up making the point of automating it (easier) much harder. So I tried to do CLI but it seems to hate me :twisted:
here is the batch script i am using, i have tried not using a batch script and it gives the same issue:

Code: Select all

filebot -script fn:renall "D:/movies/" --db TheMovieDB --format "{n.upperInitial().space('.').replaceAll(/[,()]+/).replaceAll(/\.-\./,'.')}{".$y"}{".Part.$pi"}{(dim[1]>480 && dim[0]==1280) ? '.720p' : dim[1]>720 && dim[0]==1920)? '.1080p' : null}{".$source"}{"."+ac.match(/DTS/)}{".$vc"}{'-'+fn.replaceAll(/$n/,n.replaceAll(/[-]/,'.')).match(/(?:(?<=[-])(?!(cd|CD)[0-9]+)\w+$)|(?:^(?!(cd|CD)[0-9]+)[A-Za-z0-9]+(?=[-]))|(?:(?<=^[\[])[^\]]+(?=[\]]))|(?:(?<=[\[])[^\]]+(?=[\]]$))/)}-{group}" --def target=folder --action test --log info
as a test,"filebot -script fn:renall "D:/movies/" --def target=folder --action test --log info" does work I just don't understand why adding in format would mess everything up and it's pretty vital I keep that format. Any help would be greatly appreciated as my Kodi library and general OCDness have been showing two files or not showing them at all.
User avatar
rednoah
The Source
Posts: 24037
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Frustrated renaming

Post by rednoah »

1.
If you're using the GUI, it asking questions can't be helped when Match Mode: Opportunistic is enabled. However, you can set Match Mode: Strict for your first pass. It won't ask you anything, but ambiguous files will be ignored.

It's a good way to deal with the good files first and deal with the bad ones later. Your format should be an absolute path to a new structure. It's good practice to organize files into a new structure, so that already-processed and not-yet-processed files are in separate folders.

Code: Select all

{home}/Media/{plex}
2.
If you're not sure what you're doing, then I recommend just using the amc script:
viewtopic.php?f=4&t=215


3.
--def target=folder doesn't do what you think it does, which is probably the reason why it doesn't work for you. Unless you want to recycle folders, which is almost always a bad idea.


4.
You're not using -non-strict, and assuming your library is in pretty bad shape, most of it will probably be ignored by default in strict mode.
:idea: Please read the FAQ and How to Request Help.
Post Reply