A program that pauses your Spotify music when you're alive in a round. But plays it when you're dead or in a freezetime
- Create an OAuth2 app on developers.spotify.com. Put the secret and id in
settings.json. - Put
gamestate_integration_music.cfgin yourcfgfolder (usally/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/cfg) folder. Restart the game if it was running. - Start the script
App.pyand allow it to access Spotify in the browser window that should have popped up.
settings.json is used to configure your application. Hera are the settings.json properties.
clientIdyour Spotify OAuth2 client idclientSecretyour Spotify OAuth2 client secret
enableddicides wheter you want to save the refresh token or re-authenticate on each launchtokenwhere the application saves your refresh token
enableddiced wheter you want a special track to play when you win a gametrackthe Spotify URI of the track that should be playedstartTimethe timestamp of where the track should start playing from
modeeither"active"which will choose the active spotify device,"choose"which will let you choose from all of your spotify devices, or"given"which will play from the givendeviceIdor let you choose one if none is set.deviceIdwhere the application saves your device id