Discussion on going

Generating playlist from shuffled several other playlists.

  • 29 November 2017
  • 13 replies
  • 406 views

Userlevel 2
Badge
I have several playlists of 1000 songs each. I'd like to shuffle them together and create new playlist from random songs from this playlists.

I don't want shuffle all my library and don't want to shuffle my favorites, i just want to shuffle my "work music", wich does not fit in one playlist.

13 replies

Userlevel 7
Badge +6
Hi there, the feature has now been implemented, It's called "Shuffle my Music" and you should see the button when going to MyMusic 😉
Userlevel 2
Badge
Hi there, the feature has now been implemented, It's called "Shuffle my Music" and you should see the button when going to MyMusic ;)

Shuffle my music will shuffle all my music, but i want to shuffle just two playlists.

For example a have playlists: work1, work2, work3, relax1, relax2.
Each of them reach limit for tracks.

Currently at work i must choose which of work playlist i want to listen today. But i want, that i could make shuffle from all work playlists, but not included music from relax playlists.
Userlevel 7
Badge +6
Hi @yaBoroda I see... you want to be able to select the playlists that you want to put on shuffle :)
I will pass your suggest on to our devs! 🙂 Thanks!
Userlevel 2
Badge
@Rafael. thanks!
Userlevel 3
Badge +1

Hi there, the feature has now been implemented, It's called "Shuffle my Music" and you should see the button when going to MyMusic ;)Shuffle my music will shuffle all my music, but i want to shuffle just two playlists.

For example a have playlists: work1, work2, work3, relax1, relax2.
Each of them reach limit for tracks.

Currently at work i must choose which of work playlist i want to listen today. But i want, that i could make shuffle from all work playlists, but not included music from relax playlists.


Hey @yaBoroda, if you're interested in programming at all, this is possible by using Deezer's API.

I've wanted to do this exact same thing. It works, but is not very usable.

https://github.com/jclevine/deezer-geezer/blob/recollect_tracks/recollect_tracks.py

You can keep tabs on this. I should be updating it soon(ish) to be more easily used by non-technical folks.
Userlevel 2
Badge
@JustinL actualy i intented to do exactly this and also with python )) Only i constatly delay it for next week, as usual ))

You say it already works? But i don't see where you get auth token?
Userlevel 3
Badge +1
@JustinL actualy i intented to do exactly this and also with python )) Only i constatly delay it for next week, as usual ))

You say it already works? But i don't see where you get auth token?

You have to sign up to get the API token and then just plug it in into some of the dicts (eg here). I (stupidly) didn't make a constant, so you might need to plug it into more than one place.

It does work, but you might have to dig a little. I forgot whether the commented out stuff is necessary or not.
Userlevel 3
Badge +1
@yaBoroda I fixed up the script a bit to make it easier to use.

You'll be using this script, recollect_tracks.py.

  1. Follow these instructions to get an API key
  2. Put the API key here.
  3. Put the predicate here to set which playlists you want to "reshuffle"
The script will currently:
  1. Get all the tracks from the playlists you specified
  2. Shuffle them up and remove duplicates
  3. Create x playlists, depending on how many tracks, x being # tracks / 2000 (which is the current max size for playlists)
Let me know if you have any trouble.
Userlevel 2
Badge
@JustinL I will definetely pick in your code with one eye, but i am already too deep in writing my own script to use some one's elses. It too fun )) I just recently started write in python and i love it. I even think to change my work to it (from php).

If you interested, you can see my code here
https://github.com/yaboroda/dzshuffled/blob/master/dzshuffled

It only getting token now. And authorization that way i did saw in other script on github.
Badge
Hello guys.
As a former Spotify user, I have an android app to do this automatically every night. But the Spotify app is not really compatible with vanilla android (pixel 2), so I'm moving to Deezer.
I'm planning on adapt my app to Deezer now and release on the play store.
I'll keep you guys posted.
Userlevel 2
Badge
BTW i finished my python script for doing exactly what i needed. I did it quite a while ago but forget to post here in case anyone need it. Theoreticaly it should run on windows, mac and linux, but i using it on linux only so i cant promise for other platforms.
https://github.com/yaboroda/dzshuffled

Reply