Subject: | songid doesn't get reset when clearing the playlist |
Hi,
when I start mpd, add 5 songs and running the attached script, the IDs
are from 0-4. When I clear the playlist, add 5 new songs and running
the script again, the first ID is 5. When I restart mpd, the first ID
is 0 again.
I'm using:
Audio-MPD-0.18.3
perl v5.8.8 built for x86_64-linux-thread-multi
Subject: | mpd-plids.pl |
#!/usr/bin/perl
use strict;
use warnings;
use Audio::MPD;
my $mpd = Audio::MPD->new('127.0.0.1');
foreach ($mpd->playlist->as_items())
{
print $_->id, "\n";
}