2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

37_plex.pm: fixed play links in media detail view

git-svn-id: https://svn.fhem.de/fhem/trunk@12578 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2016-11-14 21:19:42 +00:00
parent 46feea8680
commit 112675e2f7

View File

@ -1479,8 +1479,9 @@ plex_mediaDetail2($$$$)
next if( !$client->{online} );
my $cmd = 'play';
$cmd = 'playalbum' if( $item->{type} eq 'album' );
$cmd = "set $hash->{NAME} $client->{address} $cmd $item->{key}";
my $key = $item->{key};
$key =~ s/.children$//;
$cmd = "set $hash->{NAME} $client->{address} $cmd $key";
$ret .= "<a style=\"cursor:pointer\" onClick=\"FW_cmd(\\\'$FW_ME$FW_subdir?XHR=1&cmd=$cmd\\\')\">$ip</a> ";
}
$ret .= "\n\n";