Bug 230594

Summary: Playlist Layout Editor - Add 'Group by Folder' option
Product: [Applications] amarok Reporter: Bruno Laturner <renrutal>
Component: generalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 2.2.90   
Target Milestone: ---   
Platform: openSUSE   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Bruno Laturner 2010-03-13 17:18:47 UTC
Version:           2.2.90 (using KDE 4.4.1)
Installed from:    openSUSE RPMs

Please add a new 'Folder' entry to the 'Group by' option panel in the Playlist Layout Editor.

Case: 

TV Shows music, which do not have the same album name, and often containing extra media, character albuns, audio drama, movie music, etc:

base folder prefix:
/home/username/Music/Anime/

song folders:
/home/username/Music/Anime/Darker than Black
/home/username/Music/Anime/Eureka Seven
/home/username/Music/Anime/Gundam 00
/home/username/Music/Anime/Mahou Shoujo Lyrical Nanoha
/home/username/Music/Anime/Nana

Group by Source doesn't work because there's only one source. I'd have to add more than 200 sources to make it work, and it's already organized by folders.

It would be useful to have a filter to take out the base folder prefix from the string so it would only show the series name. Currently you can only add prefixes and suffixes,but not remove them.
Comment 1 Nikolaj Hald Nielsen 2010-03-15 15:10:37 UTC
commit 9208f1c416eff115f03eda64aff4dcf223d7ea55
Author: Nikolaj Hald Nielsen <nhn@kde.org>
Date:   Mon Mar 15 15:09:11 2010 +0100

    Allow playlist layouts to group tracks by directory.
    
    ChangeLog++
    
    BUG: 230594

diff --git a/ChangeLog b/ChangeLog
index 8c15847..7018283 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@ Amarok ChangeLog
 
 VERSION 2.3.1-Beta 1
   FEATURES:
+     * Allow playlist layouts to group tracks by directory. (BR 230594)
      * Cover fetcher: The UI was improved. Now an icon view is used to display
        results, with an informational sidebar that may show interesting bits
        about an image.
diff --git a/src/playlist/PlaylistDefines.h b/src/playlist/PlaylistDefines.h
index 1648eb4..1067b9c 100644
--- a/src/playlist/PlaylistDefines.h
+++ b/src/playlist/PlaylistDefines.h
@@ -187,6 +187,7 @@ static const QStringList groupableCategories = ( QStringList()
         << "Album"
         << "Artist"
         << "Composer"
+        << "Directory"
         << "Genre"
         << "Rating"
         << "Source"