-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
(A proposal) Mute radio stream on ads #1572
Conversation
Hey there, I'm not using I can imagine that making the code "production-ready" can be quite a bit of work, so if I were you I would start by explicitly pinging previous contributors to this module and asking if this is a feature they would like to be using as well — ping "authors" section of the module: @ritze, @tobes, @valdur55. But in general, the idea is valid and it will be beneficial to at least you personally, so if you want to go proceed, in my mind — go ahead! (This is also in light of #1566 which you stumbled upon 🙂). |
Thank you @maximbaz for the feedback. Like you mentioned, a feedback from the authors would be also great; f.e. a suggestion to develop a completely separated module (doing one thing and trying to do it well) would make perfectly sense either. |
Hey apiraino, I like your idea and already thought about such a tool too. I think writing a own tool independent to py3status makes here more sense. Like the usual Unix philosophy: One tool for one job. Maybe you can refactor some code from kdeconnect-notify? This tool also reads from dbus but instead of the Another way could an own py3status plugin, where your new plugin and the What do you think? |
Funny that I was discussing this PR today with someone who is using this module and they were also suggesting to implement it as a standalone tool :) |
@maximbaz @ritze awesome that we're on the same page: I agree that a standalone tool is a better idea. Also thanks for pointing me to the KDE DBus notifier, there are some bits I can borrow to make a cleaner implementation. Now, let's see what kind of tool this could be; I'd rather leave it as a py3status module for two reasons:
I was wondering, too, whether the code borrowed from When py3status will expose new APIs, I'll gladly grant some attention to this module again. Deal? :-) |
Hey sorry for a late reply. I'd vote for a standalone tool and not for extension to py3status for the following two reasons:
Yet another thing is good, this follows Unix philosophy, many small tools with one purpose each. Also, I think DBus is already this exact "generic API" you wanted to communicate with music players, I mean if you can receive song title via DBus, what else do you need really 🙂 |
@maximbaz your observations make great sense. I'll close this PR and refactor the concept in an external tool. As you pointed out, this could be also the perfect case for a toy project on a new programming language (e.g. I'm into Rust, lately). Thanks to everyone for your time and for sharing your ideas! 👍 |
Good luck! Remember to share your app once it's ready, it does seem you'll get some happy users here 😉 |
Hello!
I've started using
i3
since a couple of days and I've already fallen in love withpy3status
!! ❤️So I've hacked together a patch for the
mpris
module adding an automated volume muter to be used in radio streaming; the volume cut-off avoids the annoying advertisements and restore the previous volume level when the ad is finished: this is all managed by reading the "song title" that is being received from DBus. Ads are recognized by a user provided "blacklist" of keywords.As it is, this "works for me" (:copyright: 2018), but for a public use this is still embryonal (I've borrowed some code from the module
volume_plugin
), just to name a few things I see missing:volume_plugin
)So, if there is interest in this idea, I can keep on working to make it fit for a wider audience - else I will just use it myself.
Any suggestion and opinion is absolutely welcome!
Thanks
EDIT: just stumbled upon issue #1566 and I completely agree with that 👍