To remove "Spotify - " from the string containing the current song name, you can use the split method in Python. Assuming your string is named output, you can do this:
- song_info = output.split(" - ")[-1]
This code will split the string at the " - " delimiter and extract the last part, which is the song name, effectively removing "Spotify - " from the output. This approach should work similarly whether you're using Spotify Vanced on iPhone or any other platform.