Hello. A mini piece of code I wrote to download YouTube videos. I used Xtream UI and XUI to add vod and series and it works. youtube.php