All about user-defined episode / movie / file name format expressions
cruzanibal
Posts: 2 Joined: 18 Jun 2022, 06:02
Post
by cruzanibal » 18 Jun 2022, 06:49
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.
rednoah
The Source
Posts: 23469 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 18 Jun 2022, 08:45
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.
cruzanibal
Posts: 2 Joined: 18 Jun 2022, 06:02
Post
by cruzanibal » 18 Jun 2022, 13:13
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
Post
by yodaspowart » 04 Mar 2024, 22:27
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
1. Already named TV show video files. Adding multi-subtitles later following name of video files
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:
Shows in Plex: