Clamz is a down­loader for the ama­zon musicshop.

When you’re buy­ing music from ama­zon you’ll in most cases get an encrypted .amz file con­tain­ing the down­load links. This file would require the amazon-mp3-downloader to be decrypted. But it’s only avail­able for a hand­full and old distros.

The devel­oper behind clamz man­aged to find a way to decrypt .amz files, so every­one can buy music from amazon.

First of all install clamz (users of my apt-repo sim­ply install the clamz package):

grab the source from the home­page.

  1. ./con­fig­ure –pre­fix=/usr
  2. make
  3. sudo make install (or su –c “make install”)

For sim­ply down­load­ing the pur­chased files issue:

  1. clamz <.amz-file>

Now lean back and wait until your files are down­loaded. By default the files are placed in the music-folder set by xdg-user-dirs — this would be $HOME/Music in eng­lish or $HOME/Musik in ger­man envi­ron­ments. Of course clamz got the abil­ity to change the out­put direc­tory and the out­put file­name. Next fol­lows the allowed set of tags for doing so:

  1. ${title}
  2. ${cre­ator}
  3. ${album}
  4. ${track­num}
  5. ${album_artist}
  6. ${genre}
  7. ${dis­c­num}
  8. ${suf­fix}
  9. ${asin}
  10. ${album_asin}

Some exam­ples on chang­ing the out­put direc­tory or filename:

  1. clamz –o ${artist}${title}.${suf­fix} <.amz-file>
  2. (= Tech­noboy Meets Ruf­fian — The Undersound.mp3)
  1. clamz –out­put=${track­num}${title}.${suf­fix} <.amz-file>
  2. (= 01 — The Undersound.mp3)

For sure you can com­bine both switches. If you want to resume an already began down­load, sim­ply issue:

  1. clamz –r <.amz-file>

For all less com­mon switches check the help:

  1. clamz –help

Happy lis­ten­ing!

The ger­man ver­sion of this arti­cle has been released on Pro­Linux.