mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 17:12:32 +00:00
selected playlist now stored and displayed
git-svn-id: https://svn.fhem.de/fhem/trunk@6310 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9933b35521
commit
109c377bdc
@ -332,6 +332,11 @@ sub SB_PLAYER_Define( $$ ) {
|
|||||||
$hash->{READINGS}{favorites}{TIME} = $tn;
|
$hash->{READINGS}{favorites}{TIME} = $tn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( !defined( $hash->{READINGS}{playlists}{VAL} ) ) {
|
||||||
|
$hash->{READINGS}{playlists}{VAL} = "not";
|
||||||
|
$hash->{READINGS}{playlists}{TIME} = $tn;
|
||||||
|
}
|
||||||
|
|
||||||
# for the FHEM AV Development Guidelinses
|
# for the FHEM AV Development Guidelinses
|
||||||
# we use this to store the currently playing ID to later on return to
|
# we use this to store the currently playing ID to later on return to
|
||||||
if( !defined( $hash->{READINGS}{currentMedia}{VAL} ) ) {
|
if( !defined( $hash->{READINGS}{currentMedia}{VAL} ) ) {
|
||||||
@ -1240,6 +1245,7 @@ sub SB_PLAYER_Set( $@ ) {
|
|||||||
Log3( $hash, 5, "SB_PLAYER_Set($name): playlists command = " .
|
Log3( $hash, 5, "SB_PLAYER_Set($name): playlists command = " .
|
||||||
$msg . " ........ with $arg[0]" );
|
$msg . " ........ with $arg[0]" );
|
||||||
IOWrite( $hash, $msg . "\n" );
|
IOWrite( $hash, $msg . "\n" );
|
||||||
|
readingsSingleUpdate( $hash, "playlists", "$arg[ 0 ]", 1 );
|
||||||
SB_PLAYER_GetStatus( $hash );
|
SB_PLAYER_GetStatus( $hash );
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user