[Slim-Checkins] r8798 - /trunk/server/Slim/Utils/Scanner.pm
andy at svn.slimdevices.com
andy at svn.slimdevices.com
Fri Aug 4 12:03:40 PDT 2006
Author: andy
Date: Fri Aug 4 12:03:39 2006
New Revision: 8798
URL: http://svn.slimdevices.com?rev=8798&view=rev
Log:
Fix sort order of tracks when playing via Browse Music Folder
Modified:
trunk/server/Slim/Utils/Scanner.pm
Modified: trunk/server/Slim/Utils/Scanner.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Utils/Scanner.pm?rev=8798&r1=8797&r2=8798&view=diff
==============================================================================
--- trunk/server/Slim/Utils/Scanner.pm (original)
+++ trunk/server/Slim/Utils/Scanner.pm Fri Aug 4 12:03:39 2006
@@ -121,8 +121,9 @@
my $files = $rule->in($topDir);
my $found = $args->{'foundItems'} || [];
-
- for my $file (@{$files}) {
+
+ # File::Find::Rule doesn't keep filenames properly sorted, so we sort them here
+ for my $file ( sort @{$files} ) {
# Only check for Windows Shortcuts on Windows.
# Are they named anything other than .lnk? I don't think so.
More information about the checkins
mailing list