Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
F/LOSS Amazon MP3 Downloader Alternative
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
slackbassist
n00b
n00b


Joined: 22 Jun 2006
Posts: 39

PostPosted: Tue Mar 10, 2009 3:29 am    Post subject: F/LOSS Amazon MP3 Downloader Alternative Reply with quote

I'm a huge fan of the Amazon MP3 library - There's never been any DRM to speak of, the quality is (generally) better than iTunes', and they released linux clients.

The problem, however, is that the linux clients are all binary packages, and 32-bit based to boot. They rely on boost, which, according to this bug thread, is going to be "a whore to get working" on 64-bit.

After a lot of searching, I found an OSS alternative that works really well, Clamz.

http://code.google.com/p/clamz/

it's a pretty simple CLI tool, but it gets the job done. More importantly, it doesn't rely on boost.

If you're really lazy (like me), I've written a hack-job wrapper script (inventively called clamz-script) that allows you to download the files to wherever you tell it to, or to /home/$USER/music otherwise:

Code:

#!/bin/bash
#download amz files to the desired directory

CURRDIR=$PWD

if [ -z "$1" ]; then
   echo "Usage: /clamz-script [.amz file] [Target Directory]"
   exit 1
else
   AMZFILE=$1
fi


if [ -z "$2" ]; then
   if [ ! -d "$HOME/music" ]; then
      mkdir -p "$HOME/music"
   fi
   MUSICLOC="$HOME/music"
else
   MUSICLOC="$2"
fi

echo "Downloading $AMZFILE to $MUSICLOC."
cd $MUSICLOC

clamz "$AMZFILE"

   if [ $? != 0 ]; then
      echo "Fetch Failed"
      exit 5
   fi

echo "Fetch Successful. Cleaning Up."
rm "$AMZFILE"
cd "$CURRDIR"
exit 0


As I said, this script is very, very, hackish. YMMV. Any and all improvements are welcome, especially a better way to find the .amz file. Right now, the script assumes that you are giving a full path.
Back to top
View user's profile Send private message
dcljr
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2005
Posts: 139
Location: Austin, TX

PostPosted: Mon Jan 18, 2010 9:04 am    Post subject: Re: F/LOSS Amazon MP3 Downloader Alternative Reply with quote

slackbassist wrote:
If you're really lazy (like me), I've written a hack-job wrapper script (inventively called clamz-script) that allows you to download the files to wherever you tell it to, or to /home/$USER/music otherwise:

I'm so lazy, I just use clamz as-is. ;-)

Works fine for me "out of the box".

- dcljr
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum