>>108022331
I also run the Android GNU/Linux terminal (inside your Android settings, under System). On that also, I have zsh, yt-dlp, and ffmpeg installed. I also have Orbot installed (Android app), and configured in Power User Mode and set to allow access to Tor from any LAN IP (because the Android GNU/Linux terminal is a VM).
In that terminal, I use:
rand192 () {rand64 () { dd if=/dev/random bs=8B count=1 status=none | od -t u8 | awk '{print $2}'; }; echo "$(echo "$(rand64)*2^(64*2)+$(rand64)*2^(64*1)+$(rand64)*2^(64*0)" | bc -lq)";}; get_video () { actual_get_video () { yt-dlp "${1}" $(test -n "${2}" && echo "--output ${2}.%(ext)s") $(echo ${YTDLP_OPTS}) --abort-on-error --file-access-retries 0 --fragment-retries 0 --file-access-retries 0 --retries 0 --recode-video mp4 -N 4 --proxy socks5://$(rand192):$(rand192)@$(ip route | grep -e 'default via' | awk '{print $3}'):9050/; EXITCODE=${?}; echo -en "EXIT CODE: ${EXITCODE}\n\n"; return ${EXITCODE}; }; while ! actual_get_video ${1} ${2}; do sleep $((${RANDOM}%15)); done}; YTDLP_OPTS="--format-sort=res:360"; get_video "";
(Note: for /bin/zsh not /bin/bash)
The code will retry forever until it succeeds with a video download. It fails fast and hard so it requests a new exit node ASAP.
You can also install NewPipe, PipePipe, BravePipe, etc, for alternative clients. They weren't working for the last week but it's been fixed now.
I neglected to mention this in the last post, but don't forget to install Deno, which is a 3rd party package and most likely not in your repo. yt-dlp strongly implores the presence of Deno.