diff --git a/screen b/screen index 63000e6..3e01dc3 100755 --- a/screen +++ b/screen @@ -34,7 +34,7 @@ record() { #shellcheck disable=SC2034 mic="$(pactl list sources | grep -B1 'node.nick = "Digital Microphone"' | sed -nE 's|.*node.name = "([^"]*)"|\1.monitor|p')" #It is called in eval on line 9 #shellcheck disable=SC2034 - speaker="$(pactl list sources | grep -B1 'node.nick = "Speaker + Headphones"' | sed -nE 's|.*node.name = "([^"]*)"|\1.monitor|p')" #It is called in eval on line 9 + speaker="alsa_output.pci-0000_00_1f.3.analog-stereo.monitor" #It is called in eval on line 9 source=$(printf "screen only\nspeaker\nmic" | menu "Audio Source:" "3") [ -z "$source" ] && info "" "2000" "No option Selected" && return 0 diff --git a/torrent b/torrent index 385f43e..6d3b8d7 100755 --- a/torrent +++ b/torrent @@ -9,7 +9,7 @@ c_reset="\033[0m" down() { tput reset info_$os "Torrent: Downloading" - aria2c -d Downloads --select-file=$2 --seed-time=0 $1 && info_$os "Torrent: Download complete" && rm -f $file || error_$os "Torrent: Error!!" + aria2c --file-allocation=trunc -d Softwares --select-file=$2 --seed-time=0 $1 && info_$os "Torrent: Download complete" && rm -f $file || error_$os "Torrent: Error!!" } if [ "$(uname -o)" = "Android" ]; then diff --git a/yt-music b/yt-music index 22563b0..ff05940 100755 --- a/yt-music +++ b/yt-music @@ -244,6 +244,8 @@ search_play() { #storing context printf '{"client":{"clientName":"WEB_REMIX","clientVersion":"1.20231010.05.00"}}' >"$logdir/context" + #extracting your cookies so that the song list are according to your taste + get_cookies if ! (printf '%s' "$query" | grep -q 'https:' || printf '%s' "$query" | grep -q 'ID:'); then #json for song search @@ -261,8 +263,6 @@ search_play() { fi - #extracting your cookies so that the song list are according to your taste - get_cookies printf '' >"$logdir/next" printf "%s\n" "$res" >>"$logdir/next" printf "%s" "$res" | cut -f2 >"$logdir/start"