gdi3d / mute-spotify-ads-mac-osx

Mute Mac (osx) computer audio when Spotify plays an AD
https://gdi3d.github.io/mute-spotify-ads-mac-osx/
MIT License
120 stars 16 forks source link

Problem in Installing Ad-Silencer #9

Closed harsh778 closed 3 years ago

harsh778 commented 3 years ago

Hi! First of all great work on this project. I was trying to install it using terminal but unfortunately I am encountering this error. Please refer to the attached screenshot and help me fix the error! Thanks in advance! Screen Shot 2021-04-03 at 8 46 03 PM

gdi3d commented 3 years ago

Can you run the following command in your terminal and tell me the output

defaults read loginwindow SystemVersionStampAsString

This will tell you the OSX version that you're running

harsh778 commented 3 years ago

The version my mac is running is 10.12.6 Screen Shot 2021-04-04 at 4 52 01 PM

gdi3d commented 3 years ago

I'll need to check the documentation for that version before I can try to fix it. Thanks

harsh778 commented 3 years ago

Oh sure, thanks:)

gdi3d commented 3 years ago

Please try the following to see if it works. It's not going to be very performant and it will use more CPU than the original but it will work.

Edit the file and replace the line #91:

log stream --process="mediaremoted" --type="log" --color="none" --style="compact" | \

to this:

log stream --type="log" --color="none" --style="compact" | \

This change will cause the script to go trough all the messages, causing more CPU usage.

I can't find why the process mediaremoted is not present in your version yet. But this will be only workaround in case I don't find what happend to mediaremoted

harsh778 commented 3 years ago

Alright. So, I changed the line 91 of NoAdsSpotify.sh as told. I ran the program again from the terminal. This time, I face this error. Screen Shot 2021-04-05 at 11 11 07 AM

gdi3d commented 3 years ago

Try this:

log stream --type="log" --style="syslog" | \

harsh778 commented 3 years ago

It seems to work this time because I didn't get any error. However, the ads still don't stop. I had the terminal running this program open and also the NoAdsSpotify.sh file (just in case). Screen Shot 2021-04-05 at 4 39 45 PM

gdi3d commented 3 years ago

That's strange. I test that and works fine. Are you using HDMI speakers?

harsh778 commented 3 years ago

Nope, I ain't using the HDMI speakers. For the program to work A-OK, I only need to run sh ~/MuteSpotifyAds/NoAdsSpotify.sh in the terminal right? Anything else needs to be done too?

gdi3d commented 3 years ago

Yes. Are you using the Spotify app, right? or are you using the web ?

harsh778 commented 3 years ago

Yes, I am using the installable app.

gdi3d commented 3 years ago

Sorry, I don't know why it's not working then. Probably the logs are not working in the same way that they do on later versions of the OS.

I can't do anything more at this point

harsh778 commented 3 years ago

Oh alrighty. Anyways, thanks a lot for all the help and prompt responses :)

gdi3d commented 3 years ago

Try this before I close the ticket:

harsh778 commented 3 years ago

No luck! No such message appears. Maybe, I will try updating the version of my mac and try again later some time. Thanks, once again!

gdi3d commented 3 years ago

Sorry I couldn't help you. Thanks for your support anyways. Closing the ticket