#!/bin/sh -e search() { rm -f /tmp/invidious_results query_sanitized="$(printf "%s\n" "$1"|sed -e 's/ */%20/g')" curl --output /tmp/invidious_results "https://vid.puffyan.us/search?q=$query_sanitized" } extract_names() { viable=$(grep watch /tmp/invidious_results|grep youtube|expr $(wc -l) - 1) sed -ne 's/