When you hit download, the page sends an AJAX request to a server-side <code>.php</code> file, along with the URL you entered. This URL is passed on to a shell script that runs server side to cache the video using the <code>youtube-dl</code> program.<br>
After it's cached, the URL is passed back to client for you to download. The file remains cached until midnight, when a cronjob clears the cache folder.<br>
If you want to delve into the code yourself, the source code is available on GitHub <ahref="https://github.com/98WuG/youtube-dl-web">here</a>. Or, you can close this box and click the GitHub triangle in the upper right-hand corner.
If you want to delve into the code yourself, the source code is available on GitHub <ahref="https://github.com/98WuG/youtube-dl-web"target="_blank">here</a>. Or, you can close this box and click the GitHub triangle in the upper right-hand corner.