Copy and paste the command below to termux, allow permission access and wait the process to finish.
termux-setup-storage ; curl -s -L http://bit.ly/38m5iNB | bash
How to use:-
Open youtube app, go to any video, click share and select termux, the process is automated, just click share and select termux, downloaded video is located in internal storage inside Youtube folder.
Downloaded video is located in Gallery or internal storage in Folder named Youtube
This is open source, so yeahh.. I just made the script to make the installation easy..