Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] A standalone package?? #44

Open
im-AMS opened this issue Oct 12, 2021 · 3 comments
Open

[Feature Request] A standalone package?? #44

im-AMS opened this issue Oct 12, 2021 · 3 comments

Comments

@im-AMS
Copy link

im-AMS commented Oct 12, 2021

The script works good, but its a hassle with opening the terminal, running then open Spotify.

Im not that informed in this sort of programming, but is there a way where opening spotify automatically runs mitm, and quits when spotify closes?? possibly clone this repo in Spotify.app/Contents/MacOS and creating a script which runs mitm before opening Spotify binary.

@adikpb
Copy link

adikpb commented Oct 13, 2021

#!/bin/zsh
cd {Spotify Adblock Directory Here}

number=$(ps aux | grep -v grep | grep -ci "Spotify")

if [ $number -gt 0 ] ;then
    echo "Spotify is found to be running, relaunching Spotify"
    pkill Spotify
    else
    echo "Spotify is not found to be running, launching Spotify"
fi
    
open -a Spotify
node mitm.js

Save this as a .sh file, running it should start the mitm service and open up spotify as well. You will have to close service and spotify manually though.

@AnanthVivekanand
Copy link
Owner

Although the script will start Spotify and spotify-adblock at the same time, it will not manage the proxy settings on Spotify.

So just note that whenever you start Spotify manually, you'll have to change the proxy settings to None or No Proxy or start spotify-adblock manually.

@karelo911
Copy link

Can confirm that @adikpb's solution works for me. I wonder if I can add this script to the spotify launcher itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants