Spotify-AdKiller icon indicating copy to clipboard operation
Spotify-AdKiller copied to clipboard

Last seconds of ad coming through

Open GijsTimmers opened this issue 7 years ago • 5 comments

Similar to https://github.com/serialoverflow/blockify/issues/125.

I think it's just the last second of the ad that doesn't get muted properly.

GijsTimmers avatar Sep 23 '17 14:09 GijsTimmers

I can confirm this issue. "Fixed" it locally by prepending sleep 1 into the unmute function.

phil294 avatar Oct 16 '17 16:10 phil294

I have this issue too but it only happens one some ads.

Xenphor avatar Oct 18 '17 02:10 Xenphor

+1

str avatar Oct 20 '17 19:10 str

@omega3

Can you give instruction how to do it? What file to edit and what line exactly?

Here: https://github.com/SecUpwN/Spotify-AdKiller/blob/0be950365a2aec7ea25d73e1369e8ea2b750a8d6/spotify-adkiller.sh#L265

add the sleep. It's been a while and I am not using this anymore, but the script edited by me back then has a sleep of 2.2 seconds. Dont know why 2 instead of 1 but adjust like you want

    unmute(){
        sleep 2.2
        debuginfo "pactl: unmute"

phil294 avatar Jul 04 '19 11:07 phil294

I also experienced this (it was only 0.5-1 second of each ad in my case) when I used this, and experience the same now in somewhat similar but also somewhat different conditions (somewhat longer though). I came here to see if a (proper) fix had been found/developed.

My thought on this is that this is mostly (or exclusively?) caused by buffering/latency, in the sense that at the point this discovers that spotify is about to resume playing a wanted track, the last parts (0-2.2 seconds from the reports) of the ad has been processed by spotify and sent on, but not reached your speakers/headphones. The unmute is then processed faster, so that when this executes that it is effectuated before the buffer is emptied. This explanation pretty much requires that it can also happen when going from track to ad, but most tracks end in a way (fading out) that makes it harder to observe, but I believe I have observed exactly that, with the different solution mentioned above, I don't remember if I experienced when I used this.

hcgrove avatar Dec 28 '23 16:12 hcgrove