NO LONGER MAINTAINED AS I'VE SWITCHED OVER TO YOUTUBE MUSIC SPOTIFY PREMIUM
Quiet Spotify Ads
Rewrite of SilentSpotifyAdsScript
- Automatically mutes Spotify Ads and unmutes when song playback resumes.
- Supports Windows[1] and Mac[2] (no Linux yet)
- Runs in the background (until Spotify is closed)
- Works with Spotify Free tier
- Use Spotify API to get currently playing track and the remaining track duration
- If the current track is an ad - then follow the next steps. Else skip to step 7
- Fetch and save[3] the application volume of Spotify
- Mute Spotify's volume using the current system's application volume controls[1][2]
- Wait for the ad to finish
- Restore the application volume of Spotify to what was stored
- Calculate remaining time for current track and wait until the track is done.
- Go to step 1
- [1] Windows support requires PowerShell and C# (version 3.5)
- [2] Mac support requires AppleScript
- [3] Stored in application memory. So if you kill the process during an AD (when the volume is muted), the "saved" volume will be zero
- Remove RSpotify dependency
- Store volume state somewhere on disk so application restarts will not wipe out volume state
- Find a way around using PowerShell and C# to control Windows applications' volume
- Use Windows API bindings for Rust
- Have something else play over the ADs are running
- Ex: user's saved tracks on disk, some tracks from another application