Subject: | in add_song the call _getpath($song) -> _getpath($filename) |
Date: | Sun, 10 Jun 2007 13:03:28 +0200 |
To: | bug-Mac-iPod-GNUpod [...] rt.cpan.org |
From: | Geert-Jan <geert [...] diff.nl> |
Hi,
It seems to me that in add_song the line
$fh->{path}, my $target) = $self->_getpath($song);
should be:
$fh->{path}, my $target) = $self->_getpath($filename);
since earlier in add_song $filename is set with:
if (ref($song) eq 'HASH') {
$filename = $song->{filename};
}
else {
$filename = $song;
}
In the case when $song is a hash, _getpath($song) still returns
a filename that can be used, but without the extension of the actual
filename. It seems that the (in my case .mp3) extension is needed
by my ipod nano to be able to play yhe song.
Hope this is of some use.
Thanks for the nice package,
Geert-Jan van Opdorp