Exclude all NFO files during renaming

All about user-defined episode / movie format expressions
Post Reply
User avatar
MrEthernet
Posts: 13
Joined: 11 May 2020, 23:11

Exclude all NFO files during renaming

Post by MrEthernet » 18 May 2020, 08:38

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:

Image

User avatar
rednoah
The Source
Posts: 18395
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude all NFO files during renaming

Post by rednoah » 18 May 2020, 09:08

1.
I recommend keeping things simple if you don't actually benefit from added complexity:

Code: Select all

D:/{plex}

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


:idea: Alternatively, you can also just hit the DELETE key or the Image button to remove rows manually.
:idea: Please read the FAQ and How to Request Help.

User avatar
MrEthernet
Posts: 13
Joined: 11 May 2020, 23:11

Re: Exclude all NFO files during renaming

Post by MrEthernet » 18 May 2020, 20:05

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! :lol:

Image

Post Reply