Skip to content

Commit

Permalink
tubetop: UI fixes, change youtube-dl test flag
Browse files Browse the repository at this point in the history
  • Loading branch information
rehashedsalt committed Jul 18, 2018
1 parent ef84559 commit 1e7e249
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tubetop
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function cache-add {
if [[ "$cachecontent" == *"$1"* ]]; then
return 1
fi
name="$(youtube-dl -e $1)"
name="$(youtube-dl -s $1)"
printf "$name\n$1\n" >> $cachefile
return 0
}
Expand All @@ -78,12 +78,12 @@ function input-get {
}

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
}

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
}

Expand All @@ -95,9 +95,8 @@ fi
printf "Input: $input\n"

if cache-lookup-by-name "$input"; then
printf "Lookup successful: \n"
input="$(cache-lookup-by-name "$input")"
printf "\n"
printf "Lookup successful: $input\n"
fi

if ! video-validate $input; then
Expand Down

0 comments on commit 1e7e249

Please sign in to comment.