music recognition script fix from main

This commit is contained in:
end-4
2026-03-15 17:01:07 +01:00
parent 467f19b40e
commit 6878368d71
@@ -18,7 +18,7 @@ while getopts "i:t:s:" opt; do
done done
if [ "$SOURCE_TYPE" = "monitor" ]; then if [ "$SOURCE_TYPE" = "monitor" ]; then
MONITOR_SOURCE=$(pactl get-default-sink).monitor MONITOR_SOURCE=$(pactl get-default-sink).monitor
elif [ "$SOURCE_TYPE" = "input" ]; then elif [ "$SOURCE_TYPE" = "input" ]; then
MONITOR_SOURCE=$(pactl info | grep "Default Source:" | awk '{print $3}' || true) MONITOR_SOURCE=$(pactl info | grep "Default Source:" | awk '{print $3}' || true)
else else
echo "Invalid source type" echo "Invalid source type"