Project

General

Profile

Feature #843

Sort folders after files in playlist

Added by seb sul about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Minor
Assignee:
-
Category:
libaudcore
Target version:
Start date:
November 09, 2018
Due date:
% Done:

100%

Estimated time:
1.00 h
Affects version:

Description

just discovered Audacious (amazing player), but I realized a strange behavior when new files are added to the playlist. If a folder "My Music" is added that contains a folder "Brooklyn", Audacious displays it as the following:

  1. "My Music" songs starting with "A" are displayed first
  2. "My Music" songs starting with "B" are displayed afterwards
  3. "Brooklyn" songs starting with "A" are displayed afterwards
  4. "My Music" songs starting with "C" are displayed afterwards

Usually players like Winamp, Foobar etc.. will display logically sorted based on the folder structure:

  1. "My Music" songs starting with "A" are displayed first
  2. "My Music" songs starting with "B" are displayed afterwards
  3. "My Music" songs starting with "C" are displayed afterwards (and all remaining files in "My Music")
  4. "Brooklyn" songs starting with "A" are displayed afterwards

All files within a folder are displayed first, then the subfolders files & folders are displayed

I made a test zip file of you structure above and a screen how Audacious displays it after sorting by filenpath(looks tatally weird).

EDIT: Just for some extra information, I checked VLC and it sorts by lexicographical order. So we get this:

  1. /Music/*.mp3
  2. /Music/Brooklyn/b.mp3
  3. /Music/Brooklyn/z.mp3
  4. /Music/Brooklyn/X/l.mp3
  5. /Music/Charlie/*.mp3

Maybe this last behavior can be obtained just by doing the current comparison between paths case-insensitive.

BTW: Clementine had the same issue ( https://github.com/clementine-player/Clementine/issues/5445 )

Music.zip (1.33 KB) Music.zip seb sul, November 09, 2018 15:34
Screenshot_20181109_163009.png (52.3 KB) Screenshot_20181109_163009.png seb sul, November 09, 2018 15:34

History

#1 Updated by John Lindgren about 6 years ago

  • Subject changed from Playlist sorting by Filepath erroneously to Sort folders after files in playlist
  • Tracker changed from Bug to Feature

#2 Updated by John Lindgren about 6 years ago

  • Target version set to 4.0
  • Status changed from New to Closed
  • Category set to libaudcore

#3 Updated by John Lindgren about 6 years ago

  • % Done changed from 0 to 100

#4 Updated by seb sul about 6 years ago

John Lindgren wrote:

Implemented by this commit:
https://github.com/audacious-media-player/audacious/commit/275b050f631419c1e694407072fc77238c165a90

Absolutely awesome, many thanks ;)

Also available in: Atom PDF