simonmeusel / MuteSpotifyAds

A efficent MacOS application automatically silencing ads of the spotify desktop app
GNU General Public License v3.0
436 stars 40 forks source link

Restart Spotify #7

Closed cfvescovo closed 5 years ago

cfvescovo commented 5 years ago

Could your application restart Spotify instead of muting it? I am asking for this feature because Spotifree implemented it in version 2.0dev2 and I think it is very useful. In fact if you restart Spotify while an ad is playing Spotify skips it and starts playing the following song.

Thank you for your work!

simonmeusel commented 5 years ago

That's great idea, maybe I will add a option for it if i find time

cfvescovo commented 5 years ago

I think you should only add this code when your app sees Spotify is playing an ad.

tell application "Spotify"
     quit
end tell
delay 2
tell application "Spotify" to activate
delay 2
tell application "System Events"
    tell process "Spotify"
        click menu item "Play" of menu "Playback" of menu bar 1
    end tell
end tell
simonmeusel commented 5 years ago

I have implemented it with 4049fb70ba1d14e46e2c067a0b9065bb4ba34be8. I'm going to test it a litte more, add the docs, and then create a new release.

I have still packaged it so you can try it as well: MuteSpotifyAds.app.zip

simonmeusel commented 5 years ago

I made some adjustments and it seems to work.

cfvescovo commented 5 years ago

Yeah, thank you! I am very happy to be a contributor of this interesting project!

cfvescovo commented 5 years ago

I will test the app this afternoon

cfvescovo commented 5 years ago

It works very well! I hope you will publish the new version of the application soon! If you need help feel free to contact me. I am glad to help this project to grow with some new features.

simonmeusel commented 5 years ago

Released: https://github.com/simonmeusel/MuteSpotifyAds/releases