diff --git a/fhem/FHEM/37_plex.pm b/fhem/FHEM/37_plex.pm index 26619a2a9..9441300a0 100644 --- a/fhem/FHEM/37_plex.pm +++ b/fhem/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";