wlevine / clamz

Command-line downloader for Amazon MP3
GNU General Public License v3.0
2 stars 0 forks source link

Variables don't get replaced #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The replacement of the variables doesn't seem to work for me.

When I try to download a song with the following command:

clamz -d "/home/john/Music/${album_artist}/${album}/" -o "${tracknum} - 
${title}.${suffix}" AmazonMP3-123456.amz

The file is saved under /home/john/Music/ with the title " - .".

Do you have any idea what's going wrong?

I'm using version 0.4.

Thanks!

Original issue reported on code.google.com by quae...@gmail.com on 12 Aug 2010 at 9:04

GoogleCodeExporter commented 9 years ago
When you run that command, the shell itself will replace those variable names 
before running clamz.  (Since you presumably don't have 'album_artist' defined 
as an environment variable, it gets replaced with an empty string.)  What you 
want to do is use single quotation marks, rather than double:

clamz -d '/home/john/Music/${album_artist}/${album}/' -o '${tracknum} - 
${title}.${suffix}' AmazonMP3-123456.amz

I used the $VAR/${VAR} syntax for variables in clamz, because I figured it 
would be easy to understand for people who are used to shell programming, but I 
guess it is a little confusing if you aren't.  Sorry about that.  I should 
probably have mentioned this in the clamz manpage as well.

Original comment by Benjamin...@gmail.com on 31 Aug 2010 at 10:28

GoogleCodeExporter commented 9 years ago
Ah, thanks! I haven't tought about that.

Original comment by quae...@gmail.com on 1 Sep 2010 at 7:21

GoogleCodeExporter commented 9 years ago
I assume this issue is being kept open for info? Perhaps it could be absorbed 
into the README and closed?

Original comment by reubenrh...@gmail.com on 24 Nov 2010 at 10:31