diff --git a/Makefile.PL b/Makefile.PL index 47adb74..3d287b3 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -9,7 +9,7 @@ WriteMakefile( NAME => "Music::Tag::Amazon", 'Data::Dumper' => 2.0, 'Digest::SHA1' => 2.11, 'LWP' => 5.805, - 'Net::Amazon' => 0.59, + 'Net::Amazon' => 0.62, 'Test::More' => 0, 'File::Copy' => 0, }, diff --git a/README b/README index e8a3a91..d36d92d 100644 --- a/README +++ b/README @@ -7,6 +7,10 @@ DESCRIPTION and updates the Music::Tag object. Music::Tag::Amazon objects must be created by Music::Tag. + + Music::Tag::Amazon uses Net::Amazon and requires valid Amazon developer tokens: + + http://www.amazon.com/soap INSTALLATION To install this module type the following: diff --git a/lib/Music/Tag/Amazon.pm b/lib/Music/Tag/Amazon.pm index 791a394..a97f6a0 100644 --- a/lib/Music/Tag/Amazon.pm +++ b/lib/Music/Tag/Amazon.pm @@ -21,6 +21,7 @@ sub default_options { coveroverwrite => 0, token => "YOURTOKEN", secret_key => "SECRET", + associate_tag => "YOURTAG", min_album_points => 10, ignore_asin => 0, max_pages => 10, @@ -254,13 +255,14 @@ sub amazon_ua { } else { $self->{amazon_ua} = Net::Amazon->new( - token => $self->options->{token}, - secret_key => $self->options->{secret_key}, - cache => $self->amazon_cache, - max_pages => $self->options->{max_pages}, - locale => $self->options->{locale}, - strict => 1, - rate_limit => 1, + token => $self->options->{token}, + secret_key => $self->options->{secret_key}, + associate_tag => $self->options->{associate_tag}, + cache => $self->amazon_cache, + max_pages => $self->options->{max_pages}, + locale => $self->options->{locale}, + strict => 1, + rate_limit => 1, ); } } @@ -545,6 +547,10 @@ This plugin gathers additional information about a track from amazon, and update Music::Tag::Amazon objects must be created by Music::Tag. +Music::Tag::Amazon uses L<Net::Amazon> and requires valid Amazon deverloper tokens: + +L<http://www.amazon.com/soap> + =begin readme =head1 INSTALLATION @@ -703,6 +709,10 @@ Amazon Developer token. Change to one given to you by Amazon. REQUIRED OPTION. Amazon Developer secret key. Change to one given to you by Amazon. REQUIRED OPTION. +=item B<associate_tag> + +Amazon Developer associate tag. Change to one given to you by Amazon. REQUIRED OPTION. + =item B<min_album_points> Default 10. Minimum number of points an album must have to win election. diff --git a/t/1-amazon.t b/t/1-amazon.t index 5541d46..8563700 100644 --- a/t/1-amazon.t +++ b/t/1-amazon.t @@ -19,7 +19,8 @@ BEGIN { use_ok('Net::Amazon') } my $ua = Net::Amazon->new( token => 'YOUR_AMZN_TOKEN', - secret_key => 'YOUR_AMZN_SECRET_KEY', + secret_key => 'YOUR_AMZN_SECRET_KEY', + associate_tag => 'YOUR_AMZN_ASSOCIATE_TAG' # response_dump => 1, );