fix title_mismatch false positives due to window title not being updated by Spotify
Somehow, Spotify won't always publish the window title to the window manager, leading to just 'Spotify' being reported by wmctrl. This, in turn, leads to a false positive in ad detection. Pausing and playing the song again properly broadcasts the window title again. I can only produce this issue on one of my machines so it might be some weird system issue.
I sometimes have false positives too. I am not sure the reason behind it but it happens when I start playing a song manually (in contrast to automatically advancing to the next song). This fixes the false positive temporarily: pause, seek to very beginning of the song, play.
Thanks for blockify :)
Same problem here. The only way to solve this for me is stopping and restarting playback which results in updating the window title. Would it be feasible issuing "stop - start playback" after each (first) ad-detection and then start ad-detection a second time?