-
Notifications
You must be signed in to change notification settings - Fork 257
UX of rating songs with Mobileclient #480
Comments
This sounds smart: change_song_metadata doesn't make much sense anymore. My guess is that a song_dict would be the best interface. We could just document the minimum requirements of the dict for folks who want to call it but only have an id and type. |
Before I send in this PR, I just need some confirmation on one of those things I obsess about ^_^ I believe
In my opinion, |
I'm 👍 on
Haha, yup. Here's a super old issue about it: #30. |
Yeah, I'm really wondering how often that happens as well. As for being less calls, I don't think it's actually possible to rate multiple songs at once in the Google Play Music app (Android, at least), so I imagine that's no different than what happens with the official client anyway. I'm not sure if the calls happening much faster in a loop in Python than manually rating multiple songs in the Android app would have any effect, though. |
I just rated ~50 songs in a for loop without issue. But the time-to-complete definitely takes a hit making multiple calls. I'll probably run some tests to see how much of a difference there is. In the meantime, I'd love to hear if anyone rates large numbers of songs at once. Perhaps @chrisnorman7 would have an opinion on this, since he previously had an issue open about rating songs from his local DB. |
So, performance-wise, it looks like |
Hi mate, I'm perfectly happy with the current system, and I fixed my bugs Thanks for all you do, and take care. On 06/09/16 21:02, thebigmunch wrote:
|
Add rate_songs method to Mobileclient [Closes #480]
There has been plenty of confusion in the past (and likely present) about
Mobileclient.change_song_metadata
not having the same feature set asWebclient.change_song_metadata
did.I'm wondering if adding a
rate_song
method to be the frontend to rating a song might be an improvement over documenting that it can only change rating. The call could look something likerate_song(song_dict, rating)
. If deemed proper,change_song_metadata
could be deprecated for future removal ala our discussion ofadd_store_track
/add_store_tracks
.Semantically, this would match Google's UX which separates these concerns in their frontends. The web UI has rating in the song list but not in the 'Edit Song Info' form, and the Android app has rating while playing but no info editing at all.
I thought about having it take either a song_dict or a song_id. But, unlike library songs, store songs require at least a
trackType
field as well as the id field andrating
in the dictionary, so we'd need to have a check for store vs library and then call out toMobileclient.get_track_info
for store tracks. This adds extra layers of abstraction/processing that I don't think are worthwhile in the end. I'm just throwing it out there to see if anyone would actually be significantly benefited by it.Edit: Fun fact: Rating a track while playing in the Android app actually uses the
activity/recordrealtime
endpoint.The text was updated successfully, but these errors were encountered: