I was thinking the same thing. Instead of using a browser to access a website, parse the files given to it, and download the data so that the user can view it, you are using youtube-dl to access a website, parse the files given to it, and download the data so the user can view it.
But I'm not a lawyer.