diff options
author | xiota | 2023-01-14 18:40:11 -0800 |
---|---|---|
committer | xiota | 2023-01-14 18:43:59 -0800 |
commit | ec2361046267b652d0770f0233c6f4850bfec46c (patch) | |
tree | f754cc9c8878a3022a02a52d9bc113a79dcf26a7 /pipewire.patch | |
parent | 37ac05aecca85a1f7242fdb29522503879bb73b2 (diff) | |
download | aur-ec2361046267b652d0770f0233c6f4850bfec46c.tar.gz |
optdep on yt-dlp instead of youtube-dl
use pactl instead of pacmd (for pipewire compatibility)
Diffstat (limited to 'pipewire.patch')
-rw-r--r-- | pipewire.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pipewire.patch b/pipewire.patch new file mode 100644 index 000000000000..b1c869486437 --- /dev/null +++ b/pipewire.patch @@ -0,0 +1,44 @@ +--- a/mkchromecast/pulseaudio.py ++++ b/mkchromecast/pulseaudio.py +@@ -13,14 +13,8 @@ + 'pactl', + 'load-module', + 'module-null-sink', +- 'sink_name=' + sink_name +- ] +- +- rename_sink = [ +- 'pacmd', +- 'update-sink-proplist', +- sink_name, +- 'device.description=' + sink_name ++ 'sink_name=' + sink_name, ++ "sink_properties=device.description=" + sink_name, + ] + + cs = subprocess.Popen( +@@ -32,12 +26,6 @@ + + time.sleep(1) + +- rs = subprocess.Popen( +- rename_sink, +- stdout=subprocess.PIPE, +- stderr=subprocess.PIPE +- ) +- rsoutput, rserror = rs.communicate() + return + + +@@ -59,8 +47,9 @@ + + def check_sink(): + check_sink = [ +- 'pacmd', +- 'list-sinks' ++ 'pactl', ++ 'list', ++ 'sinks' + ] + chk = subprocess.Popen( + check_sink, |