diff --git a/README b/README index 2511eda..f05700d 100644 --- a/README +++ b/README @@ -12,3 +12,4 @@ modem-manager - used to manage laptop PCIe WAN modems. rather dense netsh - an old experiment that serves as a simple TUI for managing network interfaces... and an example of how not to use AWK plumber - one of my more sophisticated scripts; plumber creates pipes between programs based on what sort of input it receives, and handles errors (somewhat) intelligently bach - the Batch Audio Conversion Helper uses FFMPEG to convert large numbers of files at once +invcli - Invidious CLI client. I hacked this together in like an hour and a half, so it's kind of rough at the moment, but it does work! \ No newline at end of file diff --git a/invcli b/invcli new file mode 100755 index 0000000..3038480 --- /dev/null +++ b/invcli @@ -0,0 +1,63 @@ +#!/bin/sh -e + +search() +{ + rm -f /tmp/invidious_results + query_sanitized="$(printf "%s\n" "$1"|sed -ne 's/ /%20/gp')" + curl --output /tmp/invidious_results "https://vid.puffyan.us/search?q=$query_sanitized" +} +extract_names() +{ + sed -ne 's/