You can use this script to download youtube video via aria2.
REMINDER: NOT EVERY VIDEO IS POSSIBLE TO DOWNLOAD VIA ARIA2 DUE TO PARTS, ONLY VIDEOS THAT ARE SUPPORTED BY ARIA WILL BE DOWNLOADED!
Docker usage
docker pull bartixxx32/youtube-dl-aria2:latest && docker run -it -v $PWD/Downloads:/Downloads bartixxx32/youtube-dl-aria2 "link"
The downloaded files are in Downloads folder