-
Notifications
You must be signed in to change notification settings - Fork 42
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
does not block "404 Not Found" ads #33
Comments
Thanks for the detailed report, I'll try to reproduce and report back. |
I can't reproduce this issue, everything working fine here. You raise some interesting points though. I'll keep an eye on this. For now, I'm adding an option to disable forced unmute (force_unmute in the general section) with 1.7.2 to potentially play nice with your app (though you probably don't have a reason to keep blockify running if its not muting correctly). What exactly do you mean with notifications and why don't you like them? |
On second thought, i removed the force unmute code. Lets see how that plays out. It might not change anything in your case as blockify will probably still try to unmute. Let me know how it turns out. |
With 1.7.1(-2) and IceWM (instead of Enlightenment), blockify-ui went 6 for 6 in blocking ads, including at least one with a 404 error. So, the problem is apparently with Enlightenment (or my configuration thereof.) You said, " i removed the force unmute code." I think you meant you reverted force unmute to the way it was in 1.7.1. Anyway, with 1.7.2(-2), the behavior under Enlightenment is the same as with 1.7.1. (Running on its own, it blocks nothing. When my own blocker is running, blockify-ui unmutes any muted ads. :/) You asked why I don't like notifications. I didn't say that. Maybe I misunderstand how your program identifies ads. Your program documentation states that notifications are required for your program to function, so I assume it looks at notifications for ad information. I thought the 404 errors were preventing the ad notifications, but your program blocked an ad with a 404 error under IceWM, so that's not exactly the problem. Close? |
The trouble with Enlightenment is that it is not supported by libwnck. Libwnck is used by blockify to track open windows. |
I hadn't tried it in previous versions of Enlightenment, but I just installed and tried E16, and blockify-ui worked perfectly there. It even did the interlude music. |
When Spotify output says there is a 404 Not Found error for an ad, no notification of the ad is made, and so blockify lets the ad play. As of today, every ad gets a 404 Not Found, so that means blockify allows all ads, at least for me.
I'm running Blockify 1.7.1, Arch 3.18.2-1, Enlightenment 0.19.2-1, Pulseaudio 5.99.2, and Spotify 0.9.11.27-1. Enlightenment is configured to show all three levels of notifications and to use the Enlightenment notification and DBus modules. Song info appears in notifications, and they are recognized by blockify, and the DBus controls work. I don't know if my system is causing the "404 Not Found" errors or if it's happening for everyone.
I wrote a shell script in 5 minutes to mute all "404 Not Found" ads. Here is its output (which is mostly just repeating the stderr of spotify):
Here is blockify-ui's -vvv output:
2015-01-10 14:11:49 DEBUG util Added logging console handler.
2015-01-10 14:11:49 INFO util Loglevel is 10 (10=DEBUG, 20=INFO, 30=WARN).
2015-01-10 14:11:49 INFO list Blocklist loaded from /home/user/.config/blockify/blocklist.txt.
2015-01-10 14:11:49 INFO util Configuration file loaded from /home/user/.config/blockify/blockify.ini.
2015-01-10 14:11:49 INFO player InterludePlayer initialized.
2015-01-10 14:11:49 DEBUG player Loading playlist.
2015-01-10 14:11:49 DEBUG player Stop: State is (, , ).
2015-01-10 14:11:49 DEBUG player Setting interlude to: file:///media/Passport/Music/Waldeck/Balance Of The Force/01 Defenceless.mp3
2015-01-10 14:11:49 INFO player Playlist loaded (Length: 69).
2015-01-10 14:11:49 INFO player Playlist: ['file:///media/Passport/Music/Waldeck/Balance Of The Force/01 Defenceless.mp3']
2015-01-10 14:11:49 DEBUG main Mute method is pulse sink.
2015-01-10 14:11:49 INFO main Blockify initialized.
2015-01-10 14:11:49 DEBUG main Autodetect: True.
2015-01-10 14:11:49 DEBUG main Automute: True.
2015-01-10 14:11:49 DEBUG gui Enabled automute.
2015-01-10 14:11:49 INFO gui Blockify-UI initialized.
2015-01-10 14:11:49 INFO gui Blockify-UI started.
2015-01-10 14:34:09 INFO main Forcing unmute.
Where it says "Forcing unmute", your program undid my program's muting of an ad. (Note where my program says, "Ad!" at the same timestamp.) I'm not asking your program to play nicely with my program (though I'm not sure why it insists on unmuting.) I'm just saying your program misses every ad at present, at least for me. It is, however, very impressive otherwise. You could fix it by launching spotify from blockify (unless there is an easier way to grab stderr), and then just look for that text. I'm not sure, but you might be able to do away with the need for notifications while you're at it.
The text was updated successfully, but these errors were encountered: