mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 15:25:20 +05:30
IEize
This commit is contained in:
3
yt-music
3
yt-music
@@ -260,7 +260,6 @@ search_play() {
|
|||||||
id=$(printf '%s' "$query" | cut -d':' -f2 | cut -d"=" -f2 | cut -d"/" -f4 | cut -d'&' -f1)
|
id=$(printf '%s' "$query" | cut -d':' -f2 | cut -d"=" -f2 | cut -d"/" -f4 | cut -d'&' -f1)
|
||||||
title=$(curl -s "https://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=$id&format=xml" | sed -nE 's|.*<title>([^<]*)<.*|\1|p' | sed 's|&|\&|g')
|
title=$(curl -s "https://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=$id&format=xml" | sed -nE 's|.*<title>([^<]*)<.*|\1|p' | sed 's|&|\&|g')
|
||||||
res=$(printf '%s\t%s' "$title" "$id")
|
res=$(printf '%s\t%s' "$title" "$id")
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf '' >"$logdir/next"
|
printf '' >"$logdir/next"
|
||||||
@@ -292,7 +291,7 @@ play_next() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
menu() {
|
menu() {
|
||||||
if command -v bemenu &> /dev/null; then
|
if command -v bemenu >/dev/null; then
|
||||||
bemenu --fn 'IBM Plex Sans 15' -i -c -W 0.5 -B 3 -p "$1" -l 25 -I "${2:-0}" -P ">>"
|
bemenu --fn 'IBM Plex Sans 15' -i -c -W 0.5 -B 3 -p "$1" -l 25 -I "${2:-0}" -P ">>"
|
||||||
else
|
else
|
||||||
fzf --prompt="$1" --height=25 --reverse --border=horizontal --header="${2:-0}" --marker=">>"
|
fzf --prompt="$1" --height=25 --reverse --border=horizontal --header="${2:-0}" --marker=">>"
|
||||||
|
|||||||
Reference in New Issue
Block a user