youtube-tui

Shell scripts to query YouTube from a terminal.
git clone git://git.concealed.world/youtube-tui
Log | Files | Refs | README | LICENSE

commit a61b42082f6b05e84634901e93c37b5f45e5aa94
parent 7c74758ed06fe763f26eccef414e45282e00ea0e
Author: Nixx <nixx@firemail.cc>
Date:   Mon, 16 Nov 2020 22:22:47 +0000

Minor result display bug

Diffstat:
Mytsearch | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ytsearch b/ytsearch @@ -83,7 +83,7 @@ Config File: audio and video quality, youtube-dl's default. Note #1: when you select 'audio' it will download bestaudio and no video, no matter the value of s_format. - Note #2: I generall recommend you put a '/best' on the end of the + Note #2: I generally recommend you put a '/best' on the end of the quality option, so that if all else fails, it chooses the best default. @@ -160,7 +160,7 @@ playlistpages () { [[ $(echo $timeline | wc -L) -gt 7 ]] && printf '\t' || printf '\t\t' titleline="$(sed "${playcount}q;d" $playtmpout)" printf "\e[0;97m" - [[ $(echo $titleline | wc -L) -gt 50 ]] && printf "$(echo -n "${titleline}" | cut -c 1-50)" && echo -n ... || echo -n "${titleline}" + [[ $(echo ${titleline} | wc -L) -gt 50 ]] && printf "$(echo -n "${titleline}" | cut -c 1-50)" && echo -n ... || echo -n "${titleline}" printf '\n' ((playcount+=3)) done @@ -270,7 +270,7 @@ while [ ${count} -le ${len} ]; do [[ $(echo $timeline | wc -L) -gt 7 ]] && printf '\t' || printf '\t\t' titleline="$(sed "${count}q;d" $tmp)" printf "\e[0;97m" - [[ $(echo $titleline | wc -L) -gt 50 ]] && echo -n "$(echo -n "${titleline}" | cut -c 1-50)" && echo -n ... || echo -n "${titleline}" + [[ $(echo "${titleline}" | wc -L) -gt 50 ]] && echo -n "$(echo -n "${titleline}" | cut -c 1-50)" && echo -n ... || echo -n "${titleline}" printf '\n' ((count+=3)) done