To be able to run the Python script required to detect YouTube live broadcast and get the .ts link and save it to MySQL, follow the steps below for the installation on your Ubuntu server.
Log in to https://www.youtube.com in your browser.
Export cookies in .txt format using the plugin:
EditThisCookie
Get cookies.txt
Save the file as /home/youtube/cookies.txt on the server.
First test if yt-dlp is working properly:
Log in to https://www.youtube.com in your browser.
Export cookies in .txt format using the plugin:
EditThisCookie
Get cookies.txt
Save the file as /home/youtube/cookies.txt on the server.
First test if yt-dlp is working properly: