Simply append the letters "4K" to a filename after renaming

Support for Windows users
Post Reply
mdl
Posts: 4
Joined: 19 Jun 2024, 04:07

Simply append the letters "4K" to a filename after renaming

Post by mdl »

Been using FileBot for a long long time, but never beyond its basic function - renaming movies and TV episodes.

I simply want to append a movie title with the letter "4K" after the title (and of course before the extension), with the click of a button (or a hot key).

I am sure it's possible, but how?

Thank you in advance and I apologize for the (perhaps) most basic of questions.
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Simply append the letters "4K" to a filename after renaming

Post by rednoah »

You can use a Plain File Mode Preset.


Copy this configuration:
Screenshot
Then change the format:

Format: Select all

{fn} 4K
And you're done. You can then load files and click your "Add 4K" preset to add 4K to each file name. You can also configure a keyboard shortcut.
:idea: Please read the FAQ and How to Request Help.
mdl
Posts: 4
Joined: 19 Jun 2024, 04:07

Re: Simply append the letters "4K" to a filename after renaming

Post by mdl »

Got it. Thank you very much!
mdl
Posts: 4
Joined: 19 Jun 2024, 04:07

Re: Simply append the letters "4K" to a filename after renaming

Post by mdl »

Since I would like to accomplish this while renaming, is there a way to do this same thing without reverting to the original file name?
For example: I add a file, match (which cleans up the file name), then when I apply the preset script, it reverts to the original file name, plus the added "4K".

Thanks again....
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Simply append the letters "4K" to a filename after renaming

Post by rednoah »

:idea: If you're using Movie / Episode Mode, then {fn} 4K as format makes no sense of course, since that format does not use any Movie / Episode information.


:?: What movie / episode format are you currently using?


:idea: If you're using the {plex} format then you'll want do start with something like this:

Format: Select all

{ plex.id % { if (height > 2000) ' [4K]' } }
NOTE: In this case, we do not simply append "4K" to the file name, and instead only add "4K" to video files that actually have a 4K video resolution. See Conditional Structures (if-then-else) for details.
:idea: Please read the FAQ and How to Request Help.
mdl
Posts: 4
Joined: 19 Jun 2024, 04:07

Re: Simply append the letters "4K" to a filename after renaming

Post by mdl »

That worked great, I just added the if statement to my current format. You made things a lot better and I appreciate it. Thank you.
Post Reply