>>/10781/
> [simple code here]
Was surprisingly easy to get it working:
$ sudo chmod -R a+rwx /zc/put/cunt/
$ cat /usr/lib/cgi-bin/yt.sh
#!/bin/bash
echo "Content-type: text/html"
echo
echo ""
id=$(echo $REQUEST_URI | sed "s/.*=//g")
#-- not H264 #yt-dlp "https://www.youtube.com/watch?v=$id" -f mp4 -f "bestvideo[heighthttps://www.youtube.com/watch?v=$id" -f "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]" -o /zc/put/cunt/$id.mp4
yt-dlp "https://www.youtube.com/watch?v=$id" -f "bestvideo[height"
$ # works 2024-08-06T07:11Z"sudo chmod -R a+rwx" = recursively allow read+write+execute for all users (incl. www-data).