Jump to content

Tutorial Shuffle/randomize Emby created XML Playlists


Painkiller8818

Recommended Posts

Painkiller8818

Hi,

 

As i run into this problem that i added a lot songs of the same artist to my playlists because i go album for album i was looking for a way to shuffle/randomize the playlists.

I couldn't find such a function yet so i did a little powershell script for me to do it and i wanna share it with you.

 

If someone can code this in a better way or adapt this to other OS also (maybe with python) feel free to add your tutorials also here.

Maybe this is also an idea for the devs to add such a function directly to emby.

i put the .ps1 file in a zip because i'm not sure i can directly add a .ps1 file.

 

Everything is commented so everyone should understand whats happening and where you can change the paths to your personal matching paths

INFO: If you get a restriction executing the script you can allow powershell scripts by typing this into an elevated Powershell window:

Set-ExecutionPolicy -ExecutionPolicy Bypass

Emby-Playlist-Randomizer.zip

Edited by Painkiller8818
Link to comment
Share on other sites

Painkiller8818

either it is not used or no one knows how to use it :D

Link to comment
Share on other sites

There's a Shuffle button you can use for playlists instead of the Play button.
That would be the way most of us would do this.

Link to comment
Share on other sites

Painkiller8818
2 hours ago, cayars said:

There's a Shuffle button you can use for playlists instead of the Play button.
That would be the way most of us would do this.

Yes i saw that but if i create a playlist i go artist for artist and so it could be there are 70 songs + from the same artist till the next atrist. Shuffle is nice but i still have a lot of songs from the same artists right after another, so i created this script.

Now i also can click the normal play button and it is not all the same artist.

Maybe i am the only one using this :)

Link to comment
Share on other sites

  • 1 year later...

Hi Painkiller8818

No, you're not the only one who need that function ! 😉

I've done the same for Emby on a Synology NAS but in Python v3.

As i'm a beginner with python and Linux, an easier and integrated solution will be better.

But it works like that for me !

 Regards

 

randomize_emby_xml_playlist.zip

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...