Spotlight on: Clamz
Clamz is a downloader for the amazon musicshop.
When you’re buying music from amazon you’ll in most cases get an encrypted .amz file containing the download links. This file would require the amazon-mp3-downloader to be decrypted. But it’s only available for a handfull and old distros.
The developer behind clamz managed to find a way to decrypt .amz files, so everyone can buy music from amazon.
First of all install clamz (users of my apt-repo simply install the clamz package):
grab the source from the homepage.
[codesyntax lang="bash" lines="fancy" lines_start="0" container="none" tab_width="8"]
./configure --prefix=/usr make sudo make install (or su -c "make install")
[/codesyntax]
For simply downloading the purchased files issue:
[codesyntax lang="bash" lines="fancy" lines_start="0" container="none" tab_width="8"]
clamz <.amz-file>
[/codesyntax]
Now lean back and wait until your files are downloaded. By default the files are placed in the music-folder set by xdg-user-dirs — this would be $HOME/Music in english or $HOME/Musik in german environments. Of course clamz got the ability to change the output directory and the output filename. Next follows the allowed set of tags for doing so:
[codesyntax lang="bash" lines="fancy" lines_start="0" container="none" tab_width="8"]
${title}
${creator}
${album}
${tracknum}
${album_artist}
${genre}
${discnum}
${suffix}
${asin}
${album_asin}
[/codesyntax]
Some examples on changing the output directory or filename:
[codesyntax lang="bash" lines="fancy" lines_start="0" container="none" tab_width="8"]
clamz -o "${artist} - ${title}.${suffix}" <.amz-file>
(= Technoboy Meets Ruffian - The Undersound.mp3)
[/codesyntax]
[codesyntax lang="bash" lines="fancy" lines_start="0" container="none" tab_width="8"]
clamz --output="${tracknum} - ${title}.${suffix}" <.amz-file>
(= 01 - The Undersound.mp3)
[/codesyntax]
For sure you can combine both switches. If you want to resume an already began download, simply issue:
[codesyntax lang="bash" lines="fancy" lines_start="0" container="none" tab_width="8"]
clamz -r <.amz-file>
[/codesyntax]
For all less common switches check the help:
[codesyntax lang="bash" lines="fancy" lines_start="0" container="none" tab_width="8"]
clamz --help
[/codesyntax]
Happy listening!

The german version of this article has been released on ProLinux.