Bug 147692 - Amarok forgets grouping by label->interpret->album after each restart
Summary: Amarok forgets grouping by label->interpret->album after each restart
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 1.4.6
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-09 10:14 UTC by Tobias Niwi
Modified: 2008-08-05 23:42 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 Tobias Niwi 2007-07-09 10:14:16 UTC
Version:           1.4.6 (using KDE KDE 3.5.6)
Installed from:    Ubuntu Packages
OS:                Linux

I want the group my music in amarok by the following structure:
'label' -> 'interpret' -> 'album'.

This itself works well. But after each restart amarok the music is regrouped by: 'interpret' (and nothing more).
Comment 1 Tim Creech 2007-07-19 23:02:23 UTC
I try to sort my music by label -> artist -> album.  Again, this works quite well, but after each restart it forgets these settings.
Comment 2 Ian Monroe 2007-07-20 17:19:29 UTC
You mean in the collection browser?
Comment 3 Tobias Niwi 2007-07-20 19:10:07 UTC
@ Ian:

Yes, this bug report is about grouping in the collection browser.

(Sometimes it is difficult to write bug reports with a non-english version of kde).
Comment 4 Harald Sitter 2007-07-21 21:11:35 UTC
To get the english interface:
KDE_LANG="en_US" amarok
Comment 5 Jesse C 2007-07-28 01:41:18 UTC
I can confirm this behavior.  It appears that when you quit, it writes out the sort information as follows in the amarokrc

Category1=2
Category2=8192
Category3=1

The 8192 value is what it saves for label.  When it reads this back in at start-up it apparently does not parse that correctly (or maybe it was just written incorrectly.
Comment 6 Tim Creech 2007-07-28 05:02:59 UTC
It seems that the settings are written correctly back to amarokrc when amarok exits (correctly writes 8192), however, when amarok loads again, it reads 8192 incorrectly, and then when it exits it writes back the incorrect setting, which then gets loaded on the next start.
Comment 7 Jesse C 2007-08-01 21:45:33 UTC
I've found the problem.  In line 469 of src/collectionbrowser.cpp there is a define of sanecat(x) which filters out the categories being read off disk.  And IdLabel is not one of the ones being defined as acceptable.  I think just changing this define to allow IdLabel to pass would fix the problem.
Comment 8 David Leutwyler 2008-06-15 19:41:55 UTC
In 1.4.9.1 this is fixed.
Comment 9 Tim Creech 2008-06-25 03:25:53 UTC
I just updated to 1.4.9.1 but this doesn't seem to be fixed.  When I sort by Label->Artist->Album, restart, and then look at my collection browser, I see that my music is sorted only by Artist.  If I examine amarokrc:

After setting sorting to Label->Artist->Album and closing amarok:
Category1=8192
Category2=2
Category3=1

After opening and closing Amarok once more:
Category1=2
Category2=64
Category3=64

My binaries are version "1.4.9.1-103.pm.1@i586" from the packman repos for opensuse 10.2.  The "Help/About Amarok" window confirms that I'm running 1.4.9.1.  Am I mistaken or is the problem still present?
Comment 10 David Leutwyler 2008-06-27 19:28:46 UTC
Hi Tim

You are right, I made a mistake there during bug triaging. This is present in 1.4.9.1 and 2.0-svn. I have been going over this bug too fast. I apologize..

Comment 11 Lydia Pintscher 2008-08-05 23:42:20 UTC
Fixed in current svn.