mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 01:14:19 +00:00
corrected the playlist selection command
git-svn-id: https://svn.fhem.de/fhem/trunk@6214 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
57e6831307
commit
eb96929060
@ -1113,11 +1113,15 @@ sub SB_PLAYER_Set( $@ ) {
|
|||||||
|
|
||||||
} elsif( $cmd eq "playlists" ) {
|
} elsif( $cmd eq "playlists" ) {
|
||||||
if( @arg == 1 ) {
|
if( @arg == 1 ) {
|
||||||
if( defined( $SB_PLAYER_Playlists{$name}{$arg[0]}{NAME} ) ) {
|
my $msg;
|
||||||
IOWrite( $hash, "$hash->{PLAYERMAC} playlists play " .
|
if( defined( $SB_PLAYER_Playlists{$name}{$arg[0]}{ID} ) ) {
|
||||||
"$SB_PLAYER_Playlists{$name}{$arg[0]}{NAME}\n" );
|
$msg = "$hash->{PLAYERMAC} playlistcontrol cmd:load " .
|
||||||
|
"playlist_id:$SB_PLAYER_Playlists{$name}{$arg[0]}{ID}";
|
||||||
|
Log3( $hash, 5, "SB_PLAYER_Set($name): playlists command = " .
|
||||||
|
$msg . " ........ with $arg[0]" );
|
||||||
|
IOWrite( $hash, $msg . "\n" );
|
||||||
} else {
|
} else {
|
||||||
my $msg = "SB_PLAYER_Set: no name for playlist defined.";
|
$msg = "SB_PLAYER_Set: no name for playlist defined.";
|
||||||
Log3( $hash, 3, $msg );
|
Log3( $hash, 3, $msg );
|
||||||
return( $msg );
|
return( $msg );
|
||||||
}
|
}
|
||||||
@ -1351,6 +1355,8 @@ sub SB_PLAYER_RecBroadcast( $$@ ) {
|
|||||||
|
|
||||||
} elsif( $cmd eq "PLAYLISTS" ) {
|
} elsif( $cmd eq "PLAYLISTS" ) {
|
||||||
if( $args[ 0 ] eq "ADD" ) {
|
if( $args[ 0 ] eq "ADD" ) {
|
||||||
|
Log3( $hash, 5, "SB_PLAYER_RecbroadCast($name): PLAYLISTS ADD " .
|
||||||
|
"name:$args[1] id:$args[2] uid:$args[3]" );
|
||||||
$SB_PLAYER_Playlists{$name}{$args[3]}{ID} = $args[ 2 ];
|
$SB_PLAYER_Playlists{$name}{$args[3]}{ID} = $args[ 2 ];
|
||||||
$SB_PLAYER_Playlists{$name}{$args[3]}{NAME} = $args[ 1 ];
|
$SB_PLAYER_Playlists{$name}{$args[3]}{NAME} = $args[ 1 ];
|
||||||
if( $hash->{SERVERPLAYLISTS} eq "" ) {
|
if( $hash->{SERVERPLAYLISTS} eq "" ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user