mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
37_plex.pm: change order of oder of events for offline players
git-svn-id: https://svn.fhem.de/fhem/trunk@11654 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
81c7435107
commit
8313f00991
@ -2309,12 +2309,13 @@ plex_disappeared($$$)
|
||||
delete $chash->{controllable};
|
||||
delete $chash->{currentMediaType};
|
||||
|
||||
CommandDeleteReading( undef, "$chash->{NAME} currentTitle|currentAlbum|currentArtist|episode|series|key|cover|duration|type|track|playQueueID|playQueueItemID|server|section|shuffle|repeat" ) if( AttrVal($chash->{NAME}, 'removeUnusedReadings', 0 );
|
||||
|
||||
readingsBeginUpdate($chash);
|
||||
readingsBulkUpdate($chash, 'presence', 'absent' );
|
||||
readingsBulkUpdate($chash, 'state', 'disappeared' );
|
||||
readingsEndUpdate($chash, 1);
|
||||
|
||||
CommandDeleteReading( undef, "$chash->{NAME} currentTitle|currentAlbum|currentArtist|episode|series|key|cover|duration|type|track|playQueueID|playQueueItemID|server|section|shuffle|repeat" ) if( AttrVal($chash->{NAME}, 'removeUnusedReadings', 0 );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -2434,6 +2435,7 @@ plex_parseTimeline($$$)
|
||||
} else {
|
||||
delete $chash->{currentMediaType};
|
||||
|
||||
#FIXME: move after stop event
|
||||
CommandDeleteReading( undef, "$chash->{NAME} currentTitle|currentAlbum|currentArtist|episode|series|key|cover|duration|type|track|playQueueID|playQueueItemID|server|section|shuffle|repeat" ) if( AttrVal($chash->{NAME}, 'removeUnusedReadings', 0 );
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user