Hello,
I am trying to rename subtitle filenames to match the video filename.
Currently the filenames are something like:
(Title.name.with.period.instead.of.spaces.S99E99.Episode.name.with.period.instead.of.spaces.ChannelName.language.ext)
E.g.:
The.Good.Place.S01E09....Someone.Like.Me.as.a.Member.ChannelName.en[cc].vtt
I want them to be like:
The Good Place - S01 - E09 - Someone Like Me as a Member - ChannelName.en[cc].vtt
I have tried to study the instructions, but only got this far:
Match: ^(.+)\.(S\d{2})(E\d{2})\.+(.*)\.ChannelName(\..+)
Replace: \1 - \2 - \3 - \4 - ChannelName\5
This creates a new filename:
The.Good.Place - S01 - E09 - Someone.Like.Me.as.a.Member - ChannelName.en[cc].vtt
(I think that if there are multiple periods after each other I'd replace them with one space, as there is no way of knowing if the original text had periods or spaces.)
I tried then replacing periods with spaces, but it also removes the period before the language and that causes subtitles not to work with my video player.
I do have to download subtitles with different languages as sometimes my native subtitles are not available.
How can I replace the periods to spaces only within groups 1 and 4, but not affect the period before the language?