scripts

misc scripts and tools
git clone git://git.2f30.org/scripts.git
Log | Files | Refs

commit 0504e9070c6b14c592976b5a06444a689d0477aa
parent b00e604c77f311053bee6b14e884fd4afec157c7
Author: ramrunner <dsp@2f30.org>
Date:   Mon Feb 13 11:04:55 -0700

fixing malformed link on the video results

Diffstat:
ytgrep | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ytgrep b/ytgrep @@ -15,7 +15,7 @@ search() { else sstr=$1 fi - curl -s -G "https://www.googleapis.com/youtube/v3/search" -d part="snippet" -d q=$sstr -d maxResults=$NRES -d key=$KEY | jq '[.items[] | {"title":.snippet.title, "id": ["https://www.youtube.com/?v=" + .id.videoId] }]' - + curl -s -G "https://www.googleapis.com/youtube/v3/search" -d part="snippet" -d q=$sstr -d maxResults=$NRES -d key=$KEY | jq '[.items[] | {"title":.snippet.title, "id": ["https://www.youtube.com/watch?v=" + .id.videoId] }]' - } command -v jq >/dev/null || {