Add Language In Subtitles (.srt)

Any questions? Need some help?
Post Reply
Arank
Posts: 12
Joined: 23 Oct 2013, 14:02

Add Language In Subtitles (.srt)

Post by Arank »

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})"
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Add Language In Subtitles (.srt)

Post by rednoah »

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
:idea: Please read the FAQ and How to Request Help.
Arank
Posts: 12
Joined: 23 Oct 2013, 14:02

Re: Add Language In Subtitles (.srt)

Post by Arank »

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"}"
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Add Language In Subtitles (.srt)

Post by rednoah »

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
:idea: Please read the FAQ and How to Request Help.
Arank
Posts: 12
Joined: 23 Oct 2013, 14:02

Re: Add Language In Subtitles (.srt)

Post by Arank »

Thank you.
Post Reply