Added a favorites feature to remember and easily access favorite albums.#799
Added a favorites feature to remember and easily access favorite albums.#799tobag90 wants to merge 1 commit into
Conversation
|
I'm for it. Does it auto clean if the user deleted the album? |
|
Good point, not yet. I will look into that. |
|
It's possible that it's not an issue anyway, and thinking about it, the I'llleave the rest to avuton. This feature would of course be better server
|
|
Hello! First of all, thank you for the time you took to create this functionality. With that said, I don't mind the goal of this patch, but right now I disagree with the implementation. I believe this could and should be implemented using the Sticker subsystem. Keeping in mind that the concept of an 'album' does not actually exist via the MPD protocol, it only really exists in our Album item abstraction, I might implement it something like this (via the protocol): There is also the command which is not yet implemented in the Sticker.java class, but I could whip up pretty swiftly, and will likely implement soon just for fun. Then when it was time to query: There will likely be duplicated information sent and received, but it's a limitation of the protocol; The MPD protocol has many limitations, but efforts should be made to implement functionality server side when possible. With all this said, not all parts of the Sticker.java class is not well tested. If you find the Sticker.java class to be buggy, feel free to shoot me a message via hangouts or an email and I'll get a fix in for it straight away. |
|
A slight error above, the Sticker.java class is not compatible with command lists. Not a huge problem, but, this functionality could be added in the future. |
|
Thanks for the review and insights about the API
|
|
As long as the album/artist combination respects album artists I see no problem with that concept and it has far less overhead than the sticker method. |
| import com.anpmech.mpd.subsystem.status.StatusChangeListener; | ||
| import com.anpmech.mpd.subsystem.status.TrackPositionListener; | ||
| import com.namelessdev.mpdroid.favorites.Favorites; | ||
| import com.namelessdev.mpdroid.helpers.CachedMPD; |
|
Pull request #831 extends the favorites feature to use MPD stickers. |
Added a feature to remember an easily access favorite albums. Especially useful for people with huge libraries.