This project will rename your subtitle files to match the video file.
go version >=1.20.2
go build
Example files to match
$ ls -l __test
MyMovie_1.srt
MyMovie.avi
MySerial S01E01.avi
MySerial S01E01_x254.srt
$ ./subMatcher ./__test
--- Movies
MyMovie.avi
MySerial S01E01.avi
--- Subs
0 MyMovie_1.srt
1 MySerial S01E01_x254.srt
--- --- ---
score 5 MyMovie.avi MyMovie_1.srt
----
Matched subs forMyMovie.avi
Rename
./__test/MyMovie_1.srt
to
./__test/MyMovie.srt
[Y/n]
score 13 MySerial S01E01.avi MySerial S01E01_x254.srt
----
Matched subs forMySerial S01E01.avi
Rename
./__test/MySerial S01E01_x254.srt
to
./__test/MySerial S01E01.srt
[Y/n]
$ ls ./__test
MyMovie.avi MyMovie.srt MySerial S01E01.avi MySerial S01E01.srt
Recursive option. Every directory will have subMatcher
applied for itself.