Audio-RPLD
view release on metacpan or search on metacpan
lib/Audio/RPLD.pm view on Meta::CPAN
$r->{'length'} = $t[-1] + $t[-2] * 60 + $t[-3] * 3600;
$r->{'length'} = undef unless $r->{'length'};
$r->{'file'} = $p[7];
$r->{'meta'} = {'album' => $p[2], 'title' => $p[3], 'artist' => $p[4], 'performer' => $p[5], 'version' => $p[6]};
if ( $p[8] =~ m#^(long:0x[0-9a-fA-F]{16})/(short:0x[0-9a-fA-F]{8})(?:/(uuid:[0-9a-fA-F-]{36}))?$# ) {
$r->{'longid'} = $1;
$r->{'shortid'} = $2;
$r->{'uuid'} = $3 if $3;
}
if ( $p[9] =~ m#^(0x[0-9a-fA-F]{8})/(\d+)$# ) {
$r->{'meta'}->{'discid'} = hex($1) if $1;
$r->{'meta'}->{'tracknumber'} = int($2) if $2;
$r->{'meta'}->{'discid'} = undef unless $r->{'meta'}->{'discid'};
if ( $r->{'meta'}->{'discid'} ) {
$r->{'meta'}->{'totaltracks'} = $r->{'meta'}->{'discid'} & 0xFF;
lib/Audio/RPLD.pm view on Meta::CPAN
=item genre
Genre of this song.
=item genreid
Genre ID of this song.
=back
=item longid
The long GTN for the entry.
=item shortid
The short GTN for the entry.
=item uuid (optional)
The UUID for the entry.
lib/Audio/RPLD.pm view on Meta::CPAN
$q = $e->cmd_data('SHOWPOINTER', $pointer ? (uc($pointer)) : ());
return undef unless $e->is_ok(shift(@{$q}));
foreach (@{$q}) {
if ( /^POINTER (.+) NOT SET$/ ) {
$r->{$1} = {};
} elsif ( /^POINTER (.+?) IS AT (.+)/ ) {
$r->{$1} = {'plent' => $plent = {'raw' => $2}};
if ( $plent->{'raw'} =~ /^long:/ ) {
$plent->{'longid'} = $plent->{'raw'};
} elsif ( $plent->{'raw'} =~ /^short:/ ) {
$plent->{'shortid'} = $plent->{'raw'};
} elsif ( $plent->{'raw'} =~ /^uuid:/ ) {
$plent->{'uuid'} = $plent->{'raw'};
} elsif ( $plent->{'raw'} =~ /^random:(\d+)$/ ) {
$plent->{'playlist'} = int($1);
$plent->{'random'} = $plent->{'raw'};
} elsif ( $plent->{'raw'} =~ /^randomlike:(\d+)$/ ) {
$plent->{'playlist'} = int($1);
$plent->{'randomlike'} = $plent->{'raw'};
lib/Audio/RPLD.pm view on Meta::CPAN
If the hashref for the pointer points to a empty hash (no keys defined) then the pointer is not defined.
If the pointer is defined the following keys are contained:
=over
=item raw
The playlist entry the pointer points to in a raw format.
=item longid (optional)
If the pointer contains an information about the playlist entries long GTN this GTN.
=item shortid (optional)
If the pointer contains an information about the playlist entries short GTN this GTN.
=item uuid (optional)
If the pointer contains an information about the playlist entries UUID this UUID.
( run in 0.466 second using v1.01-cache-2.11-cpan-5735350b133 )