Page 1 of 1
my multiple/duplicate subtitles naming scheme
Posted: 18 Jun 2022, 06:49
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.
Re: my multiple/duplicate subtitles naming scheme
Posted: 18 Jun 2022, 08:45
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.
Re: my multiple/duplicate subtitles naming scheme
Posted: 18 Jun 2022, 13:13
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
Re: my multiple/duplicate subtitles naming scheme
Posted: 04 Mar 2024, 22:27
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
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:
