setlist.fm to Spotify Playlist Converter
Posted 30 Jul 2024, 8:36:25
Just a small update: progress is now displayed during the creation process!
Last edited 30 Jul 2024, 8:40:01
Posted 6 Aug 2024, 18:41:47
- Settings are finally stored locally (only took a year lol)
- Split Tapes setting into Main and Foreign Tapes
- Made attaching an image an optional setting
Posted 23 Sep 2024, 11:21:10
You're a genius, thank you so much, it's incredible!
Posted 25 Sep 2024, 18:16:42
Hey there!
Thanks for this, it worked great for me with a Depeche Mode concert from last October. - A software engineering and big music nerd
Posted 5 Oct 2024, 14:48:58
Oh my god, 10000 setlists converted! I don't know what to say other than thank you! It's still wild to me how many people get use out of this tool.
Uhm, not sure what else to do say here. Maybe consider dropping a dollar over on my Ko-fi page to help me cover the server hosting costs? :D
Last edited 5 Oct 2024, 14:49:46
Posted 9 Nov 2024, 0:24:16
Maybe 11,000 playlists is the limit? It's not creating playlists for me today. Seems like it's recognizing the songs but after “Creating playlist” nothing happens. I've tried an obscure setlist and then a Muse setlist from 2023 and the same thing happened.
Posted 9 Nov 2024, 0:28:55
Well, I'll be damned… You're right. Looks like Spotify has a limit of exactly 11,000 playlists you can create per account? Well, the more you know.
Now I gotta think of ways to circumvent this. Maybe I do need to start removing converted playlists after a while, even though that's like the one thing I desperately wanted to avoid. Yet at the same time I also don't want to create a new account every 11k playlists…
Man, this is hard. You got any ideas?
Posted 9 Nov 2024, 5:32:22
Well, usually I copy them to my own playlist because I just use them as a starter and then add a few more songs found on recent playlists but not on the one I used with your script.
Not ideal, but a few ideas (all involve deleting):
1) I don't suppose the Spotify API lets you see when a playlist was last played/accessed, does it? If it does, maybe use that to clear them.
2) I guess most people use this as concert preparation and not as a “souvenir”? If so, concerts are usually scheduled not much more than a year in advance, at most, and even that is just for the most popular artists. So maybe playlists of artists with over 10M (Pearl Jam – 13M, Muse – 15M, The Strokes – 15M) followers should expire after 13 months and less than that after maybe 8 months. Or just all of them after 13 months, for simplicity, if it still helps. It's not a very scalable solution but might be enough for realistic future scenarios?
3) I don't know if you can know who's using the playlist, but assuming (very possibly wrong) it's just the one who submitted, you could get contact details when creating a playlist and notify them before deleting. I don't love that option for multiple reasons.
4) Mainly for future playlists, but also for existing ones – prefix them with “⚠⚠⚠” and note about expiration in description/title (might not have enough characters if there's a limit). Also, when creating playlists, let users know about expiration. Perhaps suggest they copy to their own profile. Maybe it's also possible with the API to have it created in/copied to a logged in profile instead of your own account?
5) I suppose you already don't create duplicates if multiple people ask for the same setlist, but in case you don't – maybe that's possible (if you make the names/descriptions unique per setlist so you won't have to store the URL if you don't already).
Anyway, that's what I could think of now. Odd limit, 11000.
Posted 10 Nov 2024, 3:35:25
Bot is finally back online!
Once per day the bot now will delete its oldest playlists until it's back down to 10000 in total (I doubt we will ever get 1000 new conversion requests per day, and if so I can always still adjust the limit). This solution is kinda crude, but it does the job.
I experimented with a few other ideas in the past two days, inspired by yours. Unfortunately, Spotify doesn't really give you any insights if playlists are dead or not. I was hoping I could use the follower count, but that would mean going through every single playlist one by one (the script I wrote to test this took two full hours to finish). At the end of the day, the primary purpose of this bot is more important, so cycling out the old to make room for the new is good enough.
Thank you very much for your help and for bringing this to my attention! :)
Last edited 10 Nov 2024, 3:37:12
Posted 10 Nov 2024, 4:50:53
Sure! Thanks for doing this, and I think your solution is good enough for most users.
Posted 12 Nov 2024, 22:30:55
Hey. Not sure why some tracks weren't found. They seem to have the same name in setlist.fm, Spotify and MusicBrainz.
This is the setlist I converted:
https://www.setlist.fm/setlist/saves-the-day/2024/the-fillmore-charlotte-nc-7356ae15.html
This is the result playlist:
https://open.spotify.com/playlist/22iDDNFx4v21mS1M79W1mz?go=1&sp_cid=54c3d5102b4c52bb4e0ef3dc34226780&utm_source=embed_player_p&utm_medium=desktop
These songs weren't found for conversion:
13. Saves the Day – At Your Funeral
https://musicbrainz.org/recording/113f90c6-f585-4c9c-882f-ffee4b25573e
https://open.spotify.com/track/3UBDdFbJw8h0zLMaXGftE6?si=4a192ecbff0f4968
16. Saves the Day – Cars & Calories
https://musicbrainz.org/recording/a01eb54d-6e41-47f6-aa98-94d0d60acc62
https://open.spotify.com/track/3guo1RPvdbEMxQWZugz408?si=5c531ea1ff494ab2
20. Saves the Day – Firefly
https://musicbrainz.org/recording/72cfe8c8-455e-421a-8ba1-3866295d91d4
https://open.spotify.com/track/3d9hDbSHqDC6olcD8FxCZe?si=51a0b79f642d4b14
Just letting you know in case there's a problem (that you want to fix), but I may have misunderstood something about how the search works.
Posted 14 Nov 2024, 4:28:02
Hmmm… and now it fails for a few setlists that I've tried including one that previously worked. This one failed:
https://www.setlist.fm/setlist/the-rubens/2024/northcote-theatre-melbourne-australia-63506a3f.html
According to the error message it's either:
- Setlist not found on setlist.fm – However, it does exist.
- More than half the songs not found on Spotify – but they are on Spotify and it happened for other setlists too.
- Spotify API is down – I tried a few times over a period of ~30 minutes. I couldn't find any reports of the API being down and I don't know how to check. The status page mentioned here https://developer.spotify.com/blog/2020-07-14-web-api-status-page seems to have some certificate issues. Here there's a mention of deprecated support for some TLS versions, but it happened about a week ago.
So… I don't know.
Posted 16 Nov 2024, 13:18:09
One day I will go mad from working with Spotify's API, not even joking…
So apparently what happened here was that strict search tags don't work anymore. I don't know why and I don't know why now. The search results API of Spotify simply returns with an empty list if I have the names escaped…
The good news is that I don't seem to be alone with this particular issue
For now I have returned the old “Strict Search” checkbox, which lets you run an alternative search algorithm that's better at finding ANY results but worse at finding SPECIFIC results. I didn't want to ever bring it back, as the results are pretty crap, but I guess it's better than having to wait for Spotify to magically resolve their search API.
Last edited 16 Nov 2024, 13:19:34
Posted 16 Nov 2024, 15:05:32
Don't they notify of such changes? Unless it's a bug though.
I'd think to try to only go to concerts where the artist name and song titles are all very unique, but surprisingly it doesn't work for ABBA's “Chiquitita”.
Is Spotify somewhat responsive regarding API issues?
Last edited 16 Nov 2024, 15:06:02
Posted 16 Nov 2024, 15:10:03
Nope, Spotify is unfortunately dead silent when it comes to communicating changes to their API. This isn't even the first time they managed to break my bot by changing something for no reason and without prior announcement, but trust me that it doesn't ever stop being frustrating…
Whatever is currently going on is definitely beyond reasonable though. I also get barely any results without Strict Search enabled, which leads me to think something on Spotify's end is seriously busted.
I'll try to look more into this and keep you updated if I find anything. Though my gut tells me the only thing we can do here is wait for Spotify to unscrew itself.