From caeb09d4bbcd106aa89a84bfdddf492f2e486023 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Wed, 25 May 2016 20:57:03 +0000 Subject: [PATCH] 37_plex.pm: fixed sort indices for non-alphabeticaly sorted collections git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11520 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/37_plex.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FHEM/37_plex.pm b/FHEM/37_plex.pm index 26619a2a9..9441300a0 100644 --- a/FHEM/37_plex.pm +++ b/FHEM/37_plex.pm @@ -2556,7 +2556,6 @@ plex_metadataResponseForSMAPI($$$$$) $body .= " $item->{key}" if( $item->{key} =~ '^/' ); $body .= " $key/$item->{key}" if( $item->{key} !~ '^/' ); $body .= " http://$server->{address}:$server->{port}$item->{thumb}" if( $item->{thumb} ); - $body .= ' true' if( $xml->{size} > 20 ); $body .= ' true'; if( $item->{type} eq 'album' ) { $body .= 'true'; @@ -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";