App-Scrobble
view release on metacpan or search on metacpan
lib/App/Scrobble.pm view on Meta::CPAN
}
my $time = time;
my $count = 0;
foreach my $track ( @{ $tracks } ) {
my $artist = $track->{artist};
my $track = $track->{title};
# XXX use open binmode to correctly encode/decode the output
print "Scrobbling track: $track artist: $artist \n" if $self->verbose;
## no critic
my $ret = $lastfm->submit({
artist => $artist,
title => $track,
time => $time - ( $count * 3 * 60 ),
}) unless $self->dry_run;
print pp $ret if $self->debug;
( run in 1.108 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )