fossfreedom / coverart-browser

Browse your cover-art albums in Rhythmbox v2.96 - 3.0+
http://xpressubuntu.wordpress.com/
GNU General Public License v3.0
74 stars 19 forks source link

Library tracks get randomly reordered after using Coverart Browser #369

Open apnegrao opened 9 years ago

apnegrao commented 9 years ago

I noticed that after playing from the Coverart Browser, when Rhythmbox is restarted, the entries in the Music Library get weirdly ordered. For example, my library is usually orderered by track number, but after using coverart and restarting, this is what I get:

screenshot

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26534666-library-tracks-get-randomly-reordered-after-using-coverart-browser?utm_campaign=plugin&utm_content=tracker%2F351726&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F351726&utm_medium=issues&utm_source=github).
fossfreedom commented 9 years ago

good observation - you are the first and the plugin has been doing this for years!!

Seems also strange that the sort order in the header is not displayed on restart for the music library even if coverart is not used.

Probable fix is to add something to memorise the music library sort order when switching to coverart.

When switching back to music library to reapply that music library sort - or when coverart is about to be removed then also reapply the sort order.

note to self - sort order is also stored in gsettings - org.gnome.rhythmbox.library.source.sorting

apnegrao commented 9 years ago

Will that work if we restart Rhythmbox without returning to the Library? 'Cause this issue only appears after we restart the app; if we go to the lib before restarting, track order is fine.

Just out of curiosity, how/why is Coverart affecting the track order in the Library?

fossfreedom commented 9 years ago

coverart connects to the entry-view on the librarysource to get its sort order and thus also enable the entry-view header to be clickable

It was a long time ago - think this was the issue https://github.com/fossfreedom/coverart-browser/issues/23

If some code was added to the deactivate method of the plugin - maybe write the saved sort-order directly to gsettings then restarting rhythmbox will show the correct sort order.