2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

37_plex.pm: use name instead of product as alias on autocreate

git-svn-id: https://svn.fhem.de/fhem/trunk@18622 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2019-02-17 17:09:38 +00:00
parent 8d01497d2c
commit b02514843f

View File

@ -2560,7 +2560,8 @@ plex_parseTimeline($$$)
}
CommandAttr(undef, "$cname room plex");
if( my $entry = plex_entryOfID($hash, 'client', $id ) ) {
CommandAttr(undef, "$cname alias ".$entry->{product});
CommandAttr(undef, "$cname alias ".$entry->{name});
#CommandAttr(undef, "$cname alias ".$entry->{product});
}
$chash = $modules{plex}{defptr}{$id};
@ -4051,7 +4052,7 @@ Log 1, "!!!!!!!!!!";
$len = unpack( 'n', substr($hash->{buf},$i,2) );
$i += 2;
} elsif( $len == 127 ) {
$len = unpack( 'q', substr($hash->{buf},$i,8) );
$len = unpack( 'N', substr($hash->{buf},$i+4,8) );
$i += 8;
}
if( $mask ) {