mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +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:
parent
46feea8680
commit
112675e2f7
@ -1479,8 +1479,9 @@ plex_mediaDetail2($$$$)
|
|||||||
next if( !$client->{online} );
|
next if( !$client->{online} );
|
||||||
|
|
||||||
my $cmd = 'play';
|
my $cmd = 'play';
|
||||||
$cmd = 'playalbum' if( $item->{type} eq 'album' );
|
my $key = $item->{key};
|
||||||
$cmd = "set $hash->{NAME} $client->{address} $cmd $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 .= "<a style=\"cursor:pointer\" onClick=\"FW_cmd(\\\'$FW_ME$FW_subdir?XHR=1&cmd=$cmd\\\')\">$ip</a> ";
|
||||||
}
|
}
|
||||||
$ret .= "\n\n";
|
$ret .= "\n\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user