-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a favorites feature to remember and easily access favorite albums. #799
base: develop
Are you sure you want to change the base?
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. |
@@ -20,6 +20,7 @@ | |||
import com.anpmech.mpd.subsystem.status.IdleSubsystemMonitor; | |||
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test a modifier
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.