Page 1 of 1
Exclude all NFO files during renaming
Posted: 18 May 2020, 08:38
by MrEthernet
This is the format expression I use to rename my movies:
Code: Select all
D:/Movies/{n.colon(' - ').removeIllegalCharacters()} ({y})/{n.colon(' - ').removeIllegalCharacters()} ({y})
Is it possible to add some code to this, so that any files with a ".nfo" file extension are not renamed?
For example:

Re: Exclude all NFO files during renaming
Posted: 18 May 2020, 09:08
by rednoah
1.
I recommend keeping things simple if you don't actually benefit from added complexity:
2.
Conceptually, the selection of files is completely unrelated to formatting of destination paths, so custom formats fundamentally cannot select or unselect files.
There are however many ways of only selecting specific files for processing in the first place.
Here's a non-exclusive list of techniques:
viewtopic.php?t=4222

Alternatively, you can also just hit the
DELETE key or the

button to remove rows manually.
Re: Exclude all NFO files during renaming
Posted: 18 May 2020, 20:05
by MrEthernet
Good point. I may as well use the {plex} binding here.
The Filter -> Send to: Rename method works perfectly!
This is my first time using the Filter tab. I wasn't sure what its purpose was before and now I know!
