|
|
#1 |
|
Mute Spotify Ads Automatically [App]
Hey guys,
I was messing around last night with some of the applescript capabilities for Spotify and was able to come up with a nice little solution for automatically detecting and muting ads in the free version of Spotify. I think I was able to write it in the most efficient way where it's not polling Spotify every second, only when it needs to. Let me know what you think. Here's the applescript code: Code:
repeat tell application "Spotify" set cur_vol to sound volume set trackk to track number of current track set namme to name of current track set pop to popularity of current track set dur to duration of current track set pos to player position end tell if pop is 0 and dur is less than 31 then tell application "Spotify" pause set sound volume to 0 play end tell delay dur - pos + 1 tell application "Spotify" set sound volume to cur_vol end tell else if dur - pos is less than 30 then delay dur - pos else delay 30 end if end if end repeat Here's a link to github GitHub Last edited by ctferrara; Dec 6, 2012 at 02:17 PM. |
|
|
|
0
|
|
|
#2 |
|
Hi! The link seems to be broken. Would you please upload your app again?
|
|
|
|
0
|
|
|
#3 | |
|
Quote:
![]() I don't know how to keep it running in the background though. Make it an app and add it to start up list? Did a dry run, caught 2 commercials in a row and then setting the volume to previous level. Nice work! Last edited by br3nt; Oct 13, 2012 at 03:27 PM. |
||
|
|
0
|
|
|
#4 |
|
No offense but I think spotify should be with ads unless you paid. this is not so bad. I listen to spotify a lot (free version) and i appriciate their free service.
I think you can find better things to do with scripting. |
|
|
|
1
|
|
|
#5 | |
|
Quote:
it's like you walking out of the area when the commercials start and get back when the song is there... you're not removing anything/altering the client |
||
|
|
3
|
|
|
#8 | |
|
Quote:
![]() In short:
|
||
|
|
0
|
|
|
#9 |
|
thanks for the reply!
|
|
|
|
0
|
|
|
#10 |
|
|
0
|
|
|
#11 |
|
Update
Hey guys,
Just noticed that this has gotten some attention after uploading it and never giving it a second though. Just a few things; 1) The link should work again now. I had it saved in my dropbox public folder and had removed it (thinking nobody would ever download it). I have replaced it with an updated version. I really do suggest using Mephistopelus's version though. He got it to run invisibly somthing I had not known how to do before. That and making the startup item prompt were great. Link here. Just consider my ideas below. Thanks 2) Updated Version: Just changes a few things. a) If you quit Spotify the app Spotimute will now quit once it realizes Spotify is closed. You don't want it running all the time using resources and clogging your dock. b) Option to have a growl notification show reminding you if you have the music paused for more than 1.5 minutes. I find this useful when you pause for a second to talk to someone or watch a quick video but forget to resume the music.If you guys have any questions, comments, or requests let me know. I'm going to subscribe to this post now (don't know why I didnt beore) so I'll get them. Thanks again for all your support. ps. Hilarious story about how I remembered this app. While I use the app everyday I had completely forgotten I posted it here. Well, tonight me and my buddy were watching a movie that involves hackers (Die Hard 4) and he makes a quip about him being a hacker himself, as he recently downloaded a script that mutes Spotify on ads. Low and behold, he had download my app this morning, without even knowing I made it. Small world right..
__________________
iPhone 4 - 8GB 2007 White Macbook - 3GB RAM - 120 SSD Last edited by ctferrara; Dec 6, 2012 at 02:20 PM. |
|
|
|
0
|
![]() |
|
| Tags |
| applescript, spotify |
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 07:22 PM.









Linear Mode
