tubetop: UI fixes, change youtube-dl test flag
This commit is contained in:
parent
ef84559469
commit
1e7e2495fd
9
tubetop
9
tubetop
@ -52,7 +52,7 @@ function cache-add {
|
|||||||
if [[ "$cachecontent" == *"$1"* ]]; then
|
if [[ "$cachecontent" == *"$1"* ]]; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
name="$(youtube-dl -e $1)"
|
name="$(youtube-dl -s $1)"
|
||||||
printf "$name\n$1\n" >> $cachefile
|
printf "$name\n$1\n" >> $cachefile
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@ -78,12 +78,12 @@ function input-get {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function soft-notify {
|
function soft-notify {
|
||||||
notify-send -u low -t 3000 -a '$name' "$1" "$2"
|
notify-send -u low -t 3000 -a "$name" "$1" "$2"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
function hard-notify {
|
function hard-notify {
|
||||||
notify-send -u normal -t 10000 -a '$name' "$1" "$2"
|
notify-send -u normal -t 10000 -a "$name" "$1" "$2"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -95,9 +95,8 @@ fi
|
|||||||
printf "Input: $input\n"
|
printf "Input: $input\n"
|
||||||
|
|
||||||
if cache-lookup-by-name "$input"; then
|
if cache-lookup-by-name "$input"; then
|
||||||
printf "Lookup successful: \n"
|
|
||||||
input="$(cache-lookup-by-name "$input")"
|
input="$(cache-lookup-by-name "$input")"
|
||||||
printf "\n"
|
printf "Lookup successful: $input\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! video-validate $input; then
|
if ! video-validate $input; then
|
||||||
|
Loading…
Reference in New Issue
Block a user