hechtus / squeezebox-googlemusic

Squeezebox (Logitech Media Server) Plugin for Google Play Music
103 stars 24 forks source link

"Last Added" Playlist #41

Closed rodhull closed 9 years ago

rodhull commented 10 years ago

Is it possible to add a menu option to try to replicate the "last added" feature that is integral to the web and mobile clients as one of the "auto-playlists"? I use it to track which albums I've added having heard a song I enjoyed which was played via a radio station. Then when I want to hear the album in full at a later date, I check this list, and there's an order of the most recently added albums. Since I can't always remember the name of the artist/album, referring to this list is very useful. In the current incarnation of the LMS plugin, I can't see how to do it (unless I created a separate playlist for each album each time I add one to "My Music" which is a little messy). Do you think this is a viable enhancement?

hechtus commented 10 years ago

At the moment there is no support for the last-added-playlist in the Unofficial Google Music API. So, this would require to investigate how this feature is implemented in the mobile device client (android).

I know that there is something for "like"-playlists, even if not in gmusicapi yet. Would this help?

rodhull commented 10 years ago

I'm not sure exactly what you mean by "like" playlists. Do you mean such as an auto-generated radio station which Google thinks has tracks similar to an existing playlist? I've been thinking actually and having the "last added" functionality would be nice but it's actually no real problem to add a separate playlist (at least I can date it and add a description to say which radio station I added it from) rather than it getting "lost" in the giant library I'm amassing! An alternative to my original suggestion I presume would be to be able to browse your albums by most recently added instead of just alphabetically?

hechtus commented 10 years ago

Regarding "like" playlists, in german they are called "Mag ich" in english "Thumbs up". They appear under Auto Playlists.

Last added could be implemented by evaluating the library track information. They contain some timestamp fields. Eventually there is one that contains the time the track was added to the library.

rodhull commented 10 years ago

I think evaluating the lib. track info would be the preferred (for me at least!) way to go...thanks for the information. I'll continue to add dated playlists per album for now...

hechtus commented 10 years ago

Good news, it seems that the creationTimestamp time stamp can be used for this.

hechtus commented 10 years ago

@rodhull Just pushed a commit for this feature (see above). It would be great if you could test this.

rodhull commented 10 years ago

I may be being a bit slow but I can't see the feature in any of the menus. I have plugins updating automatically and yours is showing 0.3.9. I've restarted my LMS. Is there anything else I need to do? Sorry if I'm missing something obvious!

hechtus commented 10 years ago

I've not released it yet. To try it out you could replace the installation files under /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/GoogleMusic/ with the files you will find in this zip https://github.com/hechtus/squeezebox-googlemusic/archive/v0.3.zip

rodhull commented 10 years ago

Apologies - I should have realised when I looked at the commit structure that that was not yet in the master branch - well, the good news is that having followed your instructions it seems to work!

You plugin now seems to list the tracks in the exact same order that the web UI on Google Play Music is doing which is great, but GPM also provides clickable hyperlinks on the album and artist to which the track pertains which then take you up to those respective lists. In the plugin, all this information is merged into one single link URL containing just the track itself, Is it possible to easily provide navigation out to the album/artist that the track belongs to from the "recently added" list? In other words, replicate the clickable hierarchy that tracks from within "Browse library" in the "My Music" section already does?

Thanks for your work on this - very impressive turnaround!

hechtus commented 10 years ago

Thanks for testing the "Last added" feature. Please let me know if you are having issues with this.

Regarding clickable links to Albums and Artists. I was working on this several months ago. I got it somehow working, but it has a lot of implications and issues related to LMS specifics. I was trying to implement meaningful context menus which seemed the way to do this. It worked quite well, but there were also strange problems. Someday I will definitely continue on this. It will also allow you to delete radio stations, play instant mixes and so on. But for now I'm having other issues on my list with higher priorities.

rodhull commented 10 years ago

No problems. Thanks for the explanation and hard work. Partly due to your plugin I've now cancelled my Spotify Premium sub and am using GPMAA pretty much exclusively now for my streaming music needs.

Cheers!

hechtus commented 9 years ago

It' done and released in v0.4.0