![]() My music library lives under the watchful eye of a Plex server. ![]() The server pulls down a lot of metadata that makes artist and album pages much more delightful to browse than iTunes/Music.app ever did. ![]() I then use Plexamp to listen to music both at and away from home. I really love this setup.īesides the official Plex and Plexamp clients, there is an unofficial Python Plex library whose goal is to “match all capabilities of the official Plex Web Client”. I’ve been playing with it for a while, it is impressive, and this is the first of many uses I have in mind for it. I keep all the albums I own as CDs in a Collection called ‘□’. 1 Sometimes I want to put on some music but I don’t have a specific album in mind and end up scrolling the collection aimlessly.Ī common way to deal with this kind of choice paralysis is to let a random picker choose for you. This is very easily done using the Python library. Know the name of the client that will play the album.Know the local or remote IP address of your server.Import random from rver import PlexServer BASEURL = '' TOKEN = '' plex = PlexServer ( BASEURL, TOKEN ) owned = plex. Tell the client to play a random album from that collection.Get a list of the albums in the ‘□’ collection.Create an instance of your server with the correct url and token.Import the random library and the PlexServer class.This is cool because it doesn’t have to be on the same machine running the script! In my case I have a machine running Plexamp connected to my KEF speakers. Here’s how you can make it amazing and a little fancy. Playing a random album the glamorous wayĪ random choice from a large collection can be jarring. Too decisive, you know? One compromise you can make between that and choosing from the whole collection yourself is to get random to offer you two – or more – candidates to choose from.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |