Category Archives: Github

My Github Repo

Jellyfin Video Playlist Generator – Uses Spotify API

This is my custom python script that uses the Spotify API to create unique video playlists for my downloaded Youtube videos by Genre.  It queries Spotify using the Video title and grabs, if Spotify returns any genres at all, the most likely genre available and then creates a hash table entry for that song under the genre.  Once it is done adding all the videos to the hash table by genre it will parse it and then any genre that has less than 15 video in it will be moved to a catch all playlist.  This is done so that you don’t end up with over 650 playlists.  Why would that many playlists be created?  Because Spotify generally has a song listed under about 4 to 8 genres, I mean Christian Death Metal?  Come on, please…

Once it is done it will create the XML files and move them under the Jellfyfin servers library directory into their own sub-directories and then attempt to do a server restart.  If the new playlists do not show up, you may have to rescan your Jellyfin library to get them to appear.  There may be a web hook for that but if you want to extend the script to curl that then go right ahead.

But you can grab the script from my Github repo here: Jellyfin Video Playlist Creator

John

Azure complications with their ninja updates to services behind the scene

Picture uploads were working in November just fine as I had tested them to make sure the changes to the Function script were ok. But when I checked in mid-January it wasn’t working at all. I troubleshot for days to see if it was a configuration error or not but did not find anything out of the ordinary.

After opening a ticket they checked and said the Function server kept rebooting for some reason. Hmm, I said about that as I did not change anything in January when it stopped working. I asked them to check if there was an update to the container OS running the function and get back to me on it.

Well after about 2 weeks they said that my Python module ProtoBuf by google was out of date. So I updated all the required modules in requirements.txt and pushed it to GitHub and after it deployed the Function again and compiled it was running like a champ.

So they had updated the Python version on the image and updated their Function requirements as far as modules as well.

So next time I’m just going to open a ticket and let them tell me what had changed LOL.

John