Hello both! My apologies again for the late reply It's great to hear that it's working and you're able to have it running constantly, perhaps to try to prevent the app crashing if the internet goes down, you could surround each request in a try except block and retry it after some time has passed. This might make the code look a bit uglier but should prevent you having to manually restart it if that happens That's okay I'm more than happy to help out when I can and don't expect anything in return! :D I've been working on more Spotify things this week, in particular an app that automatically sorts all my playlists into new ones based on genre because I have almost 100 totally unorganised playlists and my Spotify is a total mess. They should put us on the payroll soon considering how much we use the API 🤣 All the best, Euan On Sun, Feb 21, 2021 at 12:50 PM wrote: Hi Euan, Hope you are keeping well. Thought I’d give you an update on the refresh fix you provided us. So far it has been running for 7 days and has captured 9 token failures successfully. It did crash on one occasion but that was due to my ISP dropping my broadband connection for a few minutes. Apart from that it’s been great. Thanks once again for your help with these things. Pete has successfully used the suggestions you sent him the other day and between us we have now completed most of what we wanted. One of my particular gripes against Spotify is the rubbish method of “shuffling” tracks in playlists. Always seems to play the same tracks no matter what you do. So I built a script that reads all the tracks of a playlist into a SQLite database, empties the playlist, then does a random query of all rows in the database and writes them back to the same playlist in a totally different order. It works amazingly well and I’ve tried it with 3000 tracks successfully. Although that takes a while to complete. Most of my playlists are 200 max so not too bad. While I was doing that script Pete was working on the problem you helped him with the other day. Where a number of tracks were moved from a “feed” to a “queue” playlist. Removed from the “feed” then added back to the end of the “feed” once listened to. We have now made it so that the to scripts combine and the listened to tracks are “shuffled” before being added back to the “feed” playlist. We are both really pleased with this but couldn’t have got near it without your help…. If there is anything we can do for you anytime please don’t hesitate to ask. We are very aware that we are giving nothing back when you help us. Failing that next time I’m visiting my in-laws in Wales, if you’re local, I’ll buy you a pint or 6. I’m sure one of us will be in touch in the future to pick your brains again (not too soon I hope). Thanks again Take care mate Allan & Pete