Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
4 changes: 4 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
24 changes: 17 additions & 7 deletions lib/Music/Tag/Amazon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
);
}
}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion t/1-amazon.t
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);

Expand Down