Revising filenames with suffixes

All about user-defined episode / movie / file name format expressions
Post Reply
FuzzyCaterpillar
Posts: 6
Joined: 19 Jun 2026, 16:02

Revising filenames with suffixes

Post by FuzzyCaterpillar »

Hello,

I'm currently going through the Office and adding the deleted scenes for each episode. I'll match the episode correctly and then append -deletedscenes to the end of the first file name. Filebot will help me out by doing the same for some if not all of the remaining files. But it doesn't append to the end of the filename as expected. It will just insert it near the end depending on the length of the episode name.

Code: Select all

Specials/The Office (2005) - S02E07 - The Client-deletedscenes
Specials/The Office (2005) - S02E08 - Performanc-deletedscenese Review
Specials/The Office (2005) - S02E09 - Email Surv-deletedsceneseillance
Specials/The Office (2005) - S02E10 - Christmas -deletedscenesParty mkv
Specials/The Office (2005) - S02E11 - Booze Crui-deletedscenesse
Specials/The Office (2005) - S02E12 - The Injury-deletedscenes
User avatar
rednoah
The Source
Posts: 24652
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Revising filenames with suffixes

Post by rednoah »

:idea: Looks like column edit is not working well for your use case... I'll have a look at it. Thank you for reporting the issue!



:arrow: Maybe you can just add something like this at the end of your format? That'll add the -deletedscenes suffix right away if the file at hand is not a complete full-length episode:

Format: Select all

{ if (minutes < 10) '-deletedscenes' }



EDIT:

FileBot r11088 and higher will fix the column edit issue at hand, by not allowing column edit behaviour in this kind of situation.
:idea: Please read the FAQ and How to Request Help.
FuzzyCaterpillar
Posts: 6
Joined: 19 Jun 2026, 16:02

Re: Revising filenames with suffixes

Post by FuzzyCaterpillar »

Wow. Thank you for responding so quickly.

I do have a follow up question though. I'm not familiar with how to use the scripts in Filebot. Is this what you mean?

Format: Select all

~/Media Center/{jellyfin.id}{ if (minutes < 10) '-deletedscenes' }

Side note. I'm not sure if this is specific to Filebot or just my system setup. I wanted to make you aware in case it is related to Filebot. I've got Kubuntu 26.04 on a Dell XPS. Filebot will work a few rounds but then crash and Ubuntu will throw a message about saving memory. Also when I open Filebot, I get a message about "Low Disk Space" even when there is still 3GB on the OS drive (32GB SSD).
User avatar
rednoah
The Source
Posts: 24652
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Revising filenames with suffixes

Post by rednoah »

:!: This piece of code will add -deletedscenes to all files that are shorter than 10 minutes:

Format: Select all

{ if (minutes < 10) '-deletedscenes' }

:idea: FileBot will give you a warning if you have little space on your OS drive, because free disk space is required for the smooth operation of all the programs on the system. FileBot will even refuse to start if you have almost no disk space left. That's because if you run out of disk space when FileBot is running, then strange unexpected things can happen. That's the same for all programs so running out of disk space on your system drive is best avoided.


:idea: FileBot runs best if it’s got at least 1GB of RAM but can be configured to use less. That’s intended for embedded devices with less than 512 MB of total RAM but can also be used on Desktop if you have very little RAM for some reason. How much memory do you have?
:idea: Please read the FAQ and How to Request Help.
Post Reply