I've written a MOVE TO MUSIC LIBRARY script..

Come up with a useful post-processing script? Share it here!
jgourd
Newbie
Newbie
Posts: 18
Joined: April 21st, 2011, 8:43 am

Re: I've written a MOVE TO MUSIC LIBRARY script..

Post by jgourd »

If I remove all the spaces from the path and manually run it, it works. Using %20 in place of spaces it fails as well. I had to tell SABnzb to replace spaces with underscores and I had to not define the $DIR and $ARENAME variables and instead use hard paths. Now it works.
jgourd
Newbie
Newbie
Posts: 18
Joined: April 21st, 2011, 8:43 am

Re: I've written a MOVE TO MUSIC LIBRARY script..

Post by jgourd »

Argh! since I am writing these out to a Samba share if the tag contains ":" it fails. Does anyone have a hook example for a regexp that replaces ":" with "-"?
User avatar
Mar2zz
Jr. Member
Jr. Member
Posts: 85
Joined: February 4th, 2011, 8:30 am
Contact:

Re: I've written a MOVE TO MUSIC LIBRARY script..

Post by Mar2zz »

it needs quotes. Think you forgot them somewhere in your script. Post your scriptcontent if you can't fix it yourself.
jgourd
Newbie
Newbie
Posts: 18
Joined: April 21st, 2011, 8:43 am

Re: I've written a MOVE TO MUSIC LIBRARY script..

Post by jgourd »

I got it fixed. I made a bunch of changes to the .arename.hooks file to remove all illegal path chars for all the File systems these might find themselves living in.
User avatar
Mar2zz
Jr. Member
Jr. Member
Posts: 85
Joined: February 4th, 2011, 8:30 am
Contact:

Re: I've written a MOVE TO MUSIC LIBRARY script..

Post by Mar2zz »

lol I was totally unaware this was about arename, had to reread page 1 :)

I am using Beets for some time now and like it a lot. More info: http://beets.radbox.org/
jgourd
Newbie
Newbie
Posts: 18
Joined: April 21st, 2011, 8:43 am

Re: I've written a MOVE TO MUSIC LIBRARY script..

Post by jgourd »

Oh great after a whole night trying to get it working you show me something better. LOL.
User avatar
Mar2zz
Jr. Member
Jr. Member
Posts: 85
Joined: February 4th, 2011, 8:30 am
Contact:

Re: I've written a MOVE TO MUSIC LIBRARY script..

Post by Mar2zz »

Hope you learned a lot from it, I mostly learn most when trying (and failing a lot)...
hewligun
Newbie
Newbie
Posts: 6
Joined: January 14th, 2013, 11:20 am

Re: I've written a MOVE TO MUSIC LIBRARY script..

Post by hewligun »

Is there any sort of script like this that will work for windows? I would like after something completes to auto run a post process script to rename as

drive:\Artist - Album\

And make each track be.. would be nice to also grab the folder.jpg online but not necessary.

01 - artist - track.mp3
02 - artist - track.mp3
Post Reply