Hi,
I would like some help to put the language name in .srt files, because I want to download both english and portuguese subtitles for my movies / series, but couldn't manage it to add the .eng or .pob (only in the subtitles) and I end up with only 1 subtitle (because it renames both with the same name).
The script I'm using at the moment is this one:
filebot -script fn:amc --output "D:/ViNiCiUS/Videos" --log-file amc.log --action copy --conflict override -non-strict --def music=n subtitle=en,pb artwork=n plex=ViNiCiUS-PC "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S" --def "seriesFormat=Seriados/{n}/{n} - {\"${s}ª Temporada\"}/{n}.{s00e00}.{t}" "movieFormat=Filmes/{n} ({y})"
And for testing I'm using the standalone version:
filebot -script fn:amc "D:/ViNiCiUS/Desktop" --output "D:/ViNiCiUS/Videos" --action copy -non-strict --def "seriesFormat=Seriados/{n}/{n} - {\"${s}ª Temporada\"}/{n}.{s00e00}.{t}" "movieFormat=Filmes/{n} ({y})"
Add Language In Subtitles (.srt)
Re: Add Language In Subtitles (.srt)
You override default naming with your format and thus force that behavior.
Have you looked at the examples?
http://www.filebot.net/forums/viewtopic.php?f=5&t=2
It's Movies & Subtitles Example #1
Have you looked at the examples?
http://www.filebot.net/forums/viewtopic.php?f=5&t=2
It's Movies & Subtitles Example #1
Re: Add Language In Subtitles (.srt)
Yeah, I already tried it, when I add the {".$lang"} at the end it returns a ScriptException: SyntaxError: unexpected token: .
P.S: I'm trying to use this format expression, but isn't working too..
--def "seriesFormat=Seriados/{n.replaceTrailingBrackets()}/{n.replaceTrailingBrackets()} - {\"${s}ª Temporada\"}/{n.replaceTrailingBrackets()} - {s00e00} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail()}{".$lang"}" "movieFormat=Filmes/"{n}({y}){"Part$pi"}{".$lang"}"
P.S: I'm trying to use this format expression, but isn't working too..
--def "seriesFormat=Seriados/{n.replaceTrailingBrackets()}/{n.replaceTrailingBrackets()} - {\"${s}ª Temporada\"}/{n.replaceTrailingBrackets()} - {s00e00} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail()}{".$lang"}" "movieFormat=Filmes/"{n}({y}){"Part$pi"}{".$lang"}"
Re: Add Language In Subtitles (.srt)
Works just fine:
http://snag.gy/35hyz.jpg
Your cmdline is just wrong. You're not passing in what you think you're passing in.
If you don't know how to escape argument give my little Escape tool a shot
http://www.filebot.net/forums/viewtopic.php?f=4&t=1041
http://snag.gy/35hyz.jpg
Your cmdline is just wrong. You're not passing in what you think you're passing in.
If you don't know how to escape argument give my little Escape tool a shot

http://www.filebot.net/forums/viewtopic.php?f=4&t=1041