NicoWeio / PulseDucking

PulseDucking lowers the volume of your music (/…), whenever your voice chat (/…) becomes noisy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spotify ID hardcoded into ducker process

thblckjkr opened this issue · comments

Hi! I was trying to use this program today, and the discord input was correctly discovered and logged whenever someone talked, but the spotify app didn't change of volume.

After doing a little bit of searching, I got to this line, I think the problem is that the spotify ID is hardcoded rather than being updated when main starts.

r = subprocess.check_output(['pacmd', 'set-sink-input-volume', '513', str(volume)])

I would solve it and create a pull request but I'm not sure how to do it.

Hey there,
I'm impressed to see that this project got itself a user! While I'm certainly humbled, it's not quite "production-ready" yet.
You can try creating a PR if you like, otherwise I'll add it to my to-do-list and hopefully work on it (& this program in general) some time in the future (Edit: no, I didn't forget about it).