Can't rename subtitle properly
Posted: 30 Mar 2016, 12:48
Hi,
i have problems to rename the subtitle properly
the input files have almost always the same file name scheme:
Now i want them in this format:
but i am not able to create nested if clauses. also i don't know how to tell filebot that the main video file has the resolution 1080p which should also appear in the subtitle name.
with my naming scheme:
i always get:
i have problems to rename the subtitle properly

the input files have almost always the same file name scheme:
Code: Select all
group-movie-1080p.mkv
group-movie-1080p-eng.idx
group-movie-1080p-eng.sub
group-movie-1080p-forced.idx
group-movie-1080p-forced.sub
group-movie-1080p.idx
group-movie-1080p.sub
Code: Select all
Movie (2016)/Movie (2016) - 1080p.mkv
Movie (2016)/Movie (2016) - 1080p.eng.idx
Movie (2016)/Movie (2016) - 1080p.eng.sub
Movie (2016)/Movie (2016) - 1080p.ger.forced.idx
Movie (2016)/Movie (2016) - 1080p.ger.forced.sub
Movie (2016)/Movie (2016) - 1080p.ger.idx
Movie (2016)/Movie (2016) - 1080p.ger.sub
with my naming scheme:
Code: Select all
/movies/{n.upperInitial().space(' ')} ({y})/{n.upperInitial().space(' ')} ({y}) - {vf}{mediaType[0].match(/subtitle/) ? fn.match(/[-_]+eng/) ? fn.match(/[-_]+forced/) ? '.eng.forced' : '.eng' : fn.match(/[-_]+forced/) ? '.ger.forced' : '.ger' : ''}
Code: Select all
Movie (2016)/Movie (2016) - 1080p.mkv
Movie (2016)/Movie (2016) - .idx
Movie (2016)/Movie (2016) - .sub
Movie (2016)/Movie (2016) - .idx
Movie (2016)/Movie (2016) - .sub
Movie (2016)/Movie (2016) - .idx
Movie (2016)/Movie (2016) - .sub