google music: add option to play the entire user library #470
I use Google play music by adding songs to my library (I have unlimited, but this can also be done by uploading songs) and then just shuffling my library. The reason for that is the playlist size limit of 1,000 songs, I have ~25,000 songs in my library and I want to shuffle all of them. Is it possible to do that with tizonia?
Steps to Reproduce
Expected behavior: Have an argument to play library
Actual behaviour: There isn't one
Reproduces how often: Every time
Installation Method Used
Install from AUR
It might not be possible to do this, but I really hope there is. Thanks!
The text was updated successfully, but these errors were encountered:
Hi!, thanks for stopping by.
This is an interesting feature, which I agree is not implemented at the moment (you can use the --shuffle option while various searches, like tracks, album, artist, etc, but not with the whole library).
I believe with gmusicapi the library can be retrieved in chunks of up to 1000 elements, and then each chunk could be shuffled individually. So one potential implementation could follow this idea, where N elements are retrieved, then shuffled and then added to the playback queue. The playback queue could start being processed as soon as the first batch arrives. Later chunks would be downloaded in the background, while playback is in progress.
I've got a prototype implementation of this, which retrieves the whole library in one go, without chunking. In my case, it works all right because my current library is around 2500 songs, so the retrieval is pretty speedy. Do you have an Ubuntu machine to test a single debian package? I could attach that here if you have the time to give it a go.
Great!. This implementation that downloads the whole library in one go may hit some Google Play music API limit which I don't see with my library.
I will upload a single test deb package later today, based on Ubuntu 18.04. You will need to download an 18.04 image.
@bbgun7 : Here is the deb:
Unzip first, and then install/uninstall with
Please make sure tizonia.conf contains:
And then run with:
Hope it works with your library!
Alright, so I got that to install but when I tried to run it, it output
Got any ideas for how I could get it to work?
Sorry, I forgot to mention that you need to install the dependencies since the test Deb does not contain dependency info.
The easiest method is described here:
After you have all the dependencies, the test Deb will work correctly.
I hope it works this time.
Yup, that worked! Sorry it took so long, I got a bit busier with school and ubuntu live was acting a bit weird. I installed ubuntu on a virtual machine and got it working and sure enough, 24150 tracks in the queue.
Works great, thanks!
Also, just as an fyi, both aur packages are out of date
@bbgun7 : thanks for the info. I suppose that kind of performance is probably OK for now. In the future, I would like to have multiple long-lived instances of Tizonia connected to multiple services, and one controlling instance that would allow you to tap into those services very quickly. First-time initialisation time would not be so critical in that kind of system.