pull down to refresh

fetch.sh:
#!/bin/sh
# pass youtube ID as arg

# prevent downloading the same shit twice
mkdir -p vids
if [ -f vids/$1.mp4 ]; then
  echo "Skipping $1: already exists.";
  exit 0;
fi;

# ALWAYS create new onion circuit
echo -e 'AUTHENTICATE "yourcontrolpass"\r\nsignal NEWNYM\r\nQUIT' | nc 127.0.0.1 9051;
sleep 2;

# if fails, put the vid in the dead letter queue
yt-dlp -t mp4 -o vids/$1.mp4 --proxy socks5h://127.0.0.1:9050 https://youtu.be/$1 || echo $1 >> dlq.txt
edit in your TorControl password.