my multiple/duplicate subtitles naming scheme

All about user-defined episode / movie / file name format expressions
Post Reply
cruzanibal
Posts: 2
Joined: 18 Jun 2022, 06:02

my multiple/duplicate subtitles naming scheme

Post by cruzanibal »

After a short search on the forums i could not find a suitable naming scheme for duplicate subtitles, so i wrote my own.

Code: Select all

{n} ({y})/{media.filename}{'.'+lang.ISO2}
{model.findAll{ it.id == id }.findAll{ it.lang =~ lang }.findIndexOf{ it.f == f }.find{ it>0 }}
My scheme does not deal with any conflicting files at the destination, it only renames source folder files.
User avatar
rednoah
The Source
Posts: 23469
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: my multiple/duplicate subtitles naming scheme

Post by rednoah »

Please paste sample input paths and sample output paths so that others can understand your use case and see what your format does. That would allow other users to recognize if their use case is the same as yours and then re-use your solution if applicable.
:idea: Please read the FAQ and How to Request Help.
cruzanibal
Posts: 2
Joined: 18 Jun 2022, 06:02

Re: my multiple/duplicate subtitles naming scheme

Post by cruzanibal »

I rename my movies while keeping original filename to keep compatibility with my videoplayer and plex media server. I rename the subtitle files with the movie original name, also for compatibility. At the end of the new subtitle name i add a duplicate count for each language.

movies => moviename (year)/movieoriginalfilename
subtitles => moviename (year)/movieoriginalfilename.langduplicateCount

Example.
  • Avengers.Endgame.2019.1080p.x264.mp4 => Avengers Endgame (2019)/Avengers.Endgame.2019.1080p.x264.mp4
  • English_1.srt => Avengers Endgame (2019)/Avengers.Endgame.2019.1080p.x264.en.srt
  • English_2.srt => Avengers Endgame (2019)/Avengers.Endgame.2019.1080p.x264.en1.srt
  • English_3.srt => Avengers Endgame (2019)/Avengers.Endgame.2019.1080p.x264.en2.srt
  • Spanish.srt => Avengers Endgame (2019)/Avengers.Endgame.2019.1080p.x264.es.srt
  • Spanish2.srt => Avengers Endgame (2019)/Avengers.Endgame.2019.1080p.x264.es1.srt
  • Spanish4.sr t => Avengers Endgame (2019)/Avengers.Endgame.2019.1080p.x264.es2.srt
yodaspowart
Posts: 16
Joined: 02 Jun 2017, 01:04

Re: my multiple/duplicate subtitles naming scheme

Post by yodaspowart »

Following 2x posts have to TV Multi-Subtitle same language working now in Plex, thanks @rednoah.
- [DOCS] {lang} and {subt} subtitle language tag

Using this from this post: emby.id title inconsistent with title

Format: Select all

{ if (dc > 1) " (Part $di)" }

1. Already named TV show video files. Adding multi-subtitles later following name of video files

Format: Select all

{ny.colon(' - ')}/{media.filename}{ if (dc > 1) ".$di" }{ subt }

Code: Select all

Reacher (2022) - S01E01 - Welcome to Margrave (Bluray-1080p x265 - AAC 2.0)
Reacher (2022) - S01E01 - Welcome to Margrave (Bluray-1080p x265 - AAC 2.0).1.eng.srt
Reacher (2022) - S01E01 - Welcome to Margrave (Bluray-1080p x265 - AAC 2.0).2.eng.srt
2. Normal Filebot rename for TV Show with Multi-Subtitle:

Format: Select all

{ny.colon(' - ')}/{ny.colon(' - ')} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t} - {allOf{match}{vs}{vf}{vc}{ac}{channels} join ' '}{ if (dc > 1) ".$di" }{ subt }
Shows in Plex:
Image
Post Reply