37_plex.pm: current mediatype fix

git-svn-id: https://svn.fhem.de/fhem/trunk@11589 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2016-06-01 20:13:57 +00:00
parent 6233855efb
commit d96521d422

View File

@@ -2428,7 +2428,7 @@ plex_parseTimeline($$$)
$state = $1 if( $1 eq $2 && $2 eq $3 );
}
if( $state =~ '(\w*):playing' ) {
if( $state =~ '(\w*):(playing|paused)' ) {
$chash->{currentMediaType} = $1;
} else {
delete $chash->{currentMediaType};