i use filebot to sort my torrents to a NAS drive. In addition i Run an Samsung Smart TV which uses the drive via DLNA to play the series.
Unfortunately the SmartTV isnt that smart and doesnt play series with certain extensions... Funny but if i rename the Files extension to .avi instead of some "unknown" format it plays them very well

How can i modify the amc.groovy script, so that it always changes all video format extensions to .avi ??? I know its a dirty solution, but it works always for my tv.
I tried to look into the code but iam stuck. Could it be that i need to remove the "without extension" and then afterwards make a string replace search?
Code: Select all
EPISODE VS MOVIE (IF NOT CLEAR)
if (tvs && mov) {
def norm = { s -> s.ascii().lower().space(' ') }
def dn = norm(guessMovieFolder(f)?.name ?: '')
def fn = norm(f.nameWithoutExtension) <-- ????
def sn = norm(tvs)
def mn = norm(mov.name)