mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 23:06:37 +00:00
37_plex.pm: fixed sort indices for non-alphabeticaly sorted collections
git-svn-id: https://svn.fhem.de/fhem/trunk@11520 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
37955aa61a
commit
6229abc6c1
@ -2556,7 +2556,6 @@ plex_metadataResponseForSMAPI($$$$$)
|
||||
$body .= " <id>$item->{key}</id>" if( $item->{key} =~ '^/' );
|
||||
$body .= " <id>$key/$item->{key}</id>" if( $item->{key} !~ '^/' );
|
||||
$body .= " <albumArtURI>http://$server->{address}:$server->{port}$item->{thumb}</albumArtURI>" if( $item->{thumb} );
|
||||
$body .= ' <canScroll>true</canScroll>' if( $xml->{size} > 20 );
|
||||
$body .= ' <canScroll>true</canScroll>';
|
||||
if( $item->{type} eq 'album' ) {
|
||||
$body .= '<canPlay>true</canPlay>';
|
||||
@ -2642,6 +2641,8 @@ plex_getScrollindicesForSMAPI($$)
|
||||
|
||||
my $current = uc(substr($title, 0, 1));
|
||||
|
||||
return '' if( $last && ord($last) > ord($current ) );
|
||||
|
||||
if( $current =~ /[A-Z]/ && (!$last || $current ne $last) ) {
|
||||
$indices .= ',' if( $indices );
|
||||
$indices .= "$current,$i";
|
||||
|
Loading…
x
Reference in New Issue
Block a user