Page 1 of 1

Correct syntax for media music organization

Posted: 09 Mar 2016, 16:10
by Meshuu
Hi guys, hi rednoah, first of all thank you for your work.
I have a problem with the amc script, I am a noob so I apologize in advance.
I recently discovered the FileBot and only yesterday I discovered the possibility of using scripts to automate all operations.
I modified the basic script in this way:

Code: Select all

filebot -script fn:amc --output "/users/alevi/downloads/media" --action move -non-strict "/users/alevi/downloads/completed” --def music=y --log-file amc.log --def excludeList=amc.txt --def deleteAfterExtract=y --def clean=y --def musicFormat=/users/alevi/downloads/media/music/{artist}/{y}.{album}/{pi}.{t}
I tested the script with cmdline and everything works perfectly except for one thing, music albums are organized in this way
eg Music/Coldplay/2015.A Head Full of Dreams/1.A Head Full Of Dreams
But what I want to achieve is this:
eg Music/Coldplay/(2015) A Head Full of Dreams/01. A Head Full Of Dreams
It is possible, and if so what is the correct syntax? I use OS X.
Many thanks in advance.

Re: Correct syntax for media music organization

Posted: 09 Mar 2016, 16:22
by rednoah
1. It's doing exactly what you tell it to do.

Code: Select all

{artist}/{y}.{album}/{pi}.{t}
Coldplay/2015.A Head Full of Dreams/1.A Head Full Of Dreams
2. What's the problem? Adding parentheses and padding? Please learn from the examples.

Code: Select all

???
Music/Coldplay/(2015) A Head Full of Dreams/01. A Head Full Of Dreams
Read this:
http://www.filebot.net/naming.html
viewtopic.php?f=5&t=2#p51

Re: Correct syntax for media music organization

Posted: 09 Mar 2016, 16:32
by Meshuu
rednoah wrote:1. It's doing exactly what you tell it to do.

Code: Select all

{artist}/{y}.{album}/{pi}.{t}
Coldplay/2015.A Head Full of Dreams/1.A Head Full Of Dreams
2. What's the problem? Adding parentheses and padding? Please learn from the examples.

Code: Select all

???
Music/Coldplay/(2015) A Head Full of Dreams/01. A Head Full Of Dreams
Read this:
http://www.filebot.net/naming.html
viewtopic.php?f=5&t=2#p51
I know at the first point it's doing exactly what I tell it to do.
Yes exactly, although I saw the link can not I add parentheses and padding.

Re: Correct syntax for media music organization

Posted: 09 Mar 2016, 19:28
by rednoah
You can find this 1:1 in the examples:

Code: Select all

{'('+y+')'}

Code: Select all

{pi.pad(2)}

Re: Correct syntax for media music organization

Posted: 10 Mar 2016, 18:04
by Meshuu
rednoah wrote:You can find this 1:1 in the examples:

Code: Select all

{'('+y+')'}

Code: Select all

{pi.pad(2)}
Thank you for your answer.
I had already tried to use the syntax you suggested but did not work with osx system.
Finally I solved using quotes in this way:

Code: Select all

filebot -script fn:amc --output "/users/alevi/downloads/media" --action move -non-strict "/users/alevi/downloads/completed" --def music=y --log-file amc.log --def excludeList=amc.txt --def deleteAfterExtract=y --def clean=y --def musicFormat=/users/alevi/downloads/media/music/{artist}/"({y}) "{album}/"{pi.pad(2)} - "{t}
I hope it will be useful to other novice users like me.
Thank you so much for your work.

Re: Correct syntax for media music organization

Posted: 10 Mar 2016, 20:11
by rednoah
If you don't understand how Cmdline and Argument Passing works then I recommend passing complex arguments via text files.

Re: Correct syntax for media music organization

Posted: 11 Mar 2016, 17:10
by Meshuu
rednoah wrote:If you don't understand how Cmdline and Argument Passing works then I recommend passing complex arguments via text files.
Many thanks rednoah, use this syntax is much simpler, and makes it much "cleaner script".
I have used this syntax, and the args.txt file, to create the plist files to automate the process. I hope shortly to create a post where I explain a method to create the plist with the help of an additional program that makes it easy for anyone who is not an expert user.