mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
increased loading time by a bit
This commit is contained in:
2
screen
2
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
|
||||
|
||||
2
torrent
2
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
|
||||
|
||||
4
yt-music
4
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"
|
||||
|
||||
Reference in New Issue
Block a user