Page 1 of 1

Automatic naming and moving Subtitles to Subtitles Folder

Posted: 28 May 2025, 23:46
by Bulbadrick
I use this Expression to name my TV Shows and Subtitles for them,

Format: Select all

f:\(01) - TV Shows\{n.colon' - '} [{y}] { model.episode.containsAll(episodelist.episode) ? - ' [Complete]' :- ' [Incomplete]' }/{'Season '+s.pad (2)} {SY}/{n.colon' - '} - {s00e00} - {t.removeAll(/[!?]+$/).colon' - '}{Subtitles.colon' - '} {cy}{- subt.replace(".eng":" (English Subtitles)")}
Which gives me this, when naming subtitles,

f:/(01) - TV Shows/Futurama [1999] - [Incomplete]/Season 01 [1999]/Futurama - S01E02 - The Series Has Landed - (English Subtitles)

What do I need to change to make it automatically move the subtitles files into the subtitles folder when I'm naming both the shows and subtitles?
Like this for TV shows.

Code: Select all

f:/(01) - TV Shows/Futurama [1999] - [Incomplete]/Season 01 [1999]/Futurama - S01E02 - The Series Has Landed
And this for subtitles.

Code: Select all

f:/(01) - TV Shows/Futurama [1999] - [Incomplete]/Season 01 [1999]/Subtitles/Futurama - S01E02 - The Series Has Landed - (English Subtitles)

Re: Automatic naming and moving Subtitles to Subtitles Folder

Posted: 29 May 2025, 07:01
by rednoah
You can add a condition at whichever position you want to insert the extra Subtitles/ bit:

Format: Select all

{ if (f.subtitle) 'Subtitles/' }