Sub Naming Format using AMC

All about user-defined episode / movie format expressions
Post Reply
skinsvpn
Posts: 13
Joined: 26 Sep 2014, 11:46

Sub Naming Format using AMC

Post by skinsvpn »

When I have amc get subs can I specify the naming convention?

i.e. "subFormat={n} ({y}){'.'+lang}"
User avatar
rednoah
The Source
Posts: 21495
Joined: 16 Nov 2011, 08:59

Re: Sub Naming Format using AMC

Post by rednoah »

Yes, movieFormat and seriesFormat is applied to video files and subtitle files.
:idea: Please read the FAQ and How to Request Help.
skinsvpn
Posts: 13
Joined: 26 Sep 2014, 11:46

Re: Sub Naming Format using AMC

Post by skinsvpn »

Can someone give me a hand with my language adding format?

{'.'+lang}
{".$lang"}

Both give "ScriptException: SyntaxError: unexpected token: ."

{\".$lang\"}
.{lang} - just a sanity check

Both worked but added an extra . before the extension for non sub files.
User avatar
rednoah
The Source
Posts: 21495
Joined: 16 Nov 2011, 08:59

Re: Sub Naming Format using AMC

Post by rednoah »

Do you know how " ' $ etc work in the *nix shell? You're doing it wrong, and thus not passing what you think you're passing. You need to escape special characters correctly.

Here's a tutorial I wrote:
viewtopic.php?f=4&t=1899
:idea: Please read the FAQ and How to Request Help.
Post Reply