Correct syntax for media music organization

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Meshuu
Posts: 18
Joined: 09 Mar 2016, 15:50

Correct syntax for media music organization

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

Re: Correct syntax for media music organization

Post 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
:idea: Please read the FAQ and How to Request Help.
Meshuu
Posts: 18
Joined: 09 Mar 2016, 15:50

Re: Correct syntax for media music organization

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

Re: Correct syntax for media music organization

Post by rednoah »

You can find this 1:1 in the examples:

Code: Select all

{'('+y+')'}

Code: Select all

{pi.pad(2)}
:idea: Please read the FAQ and How to Request Help.
Meshuu
Posts: 18
Joined: 09 Mar 2016, 15:50

Re: Correct syntax for media music organization

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

Re: Correct syntax for media music organization

Post by rednoah »

If you don't understand how Cmdline and Argument Passing works then I recommend passing complex arguments via text files.
:idea: Please read the FAQ and How to Request Help.
Meshuu
Posts: 18
Joined: 09 Mar 2016, 15:50

Re: Correct syntax for media music organization

Post 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.
Post Reply