Bug 230594 - Playlist Layout Editor - Add 'Group by Folder' option
Summary: Playlist Layout Editor - Add 'Group by Folder' option
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 2.2.90
Platform: openSUSE Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-13 17:18 UTC by Bruno Laturner
Modified: 2010-03-15 15:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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"