I really hate when video lag because my internet connection sux, so this is what I do to watch videos locally
To automatically monitor and download YouTube videos from a specific channel using yt-dl on Windows using the Command Prompt (CMD), follow these steps:
Install yt-dl. To do this, open CMD and type pip install yt-dl. This will install the latest version of yt-dl on your computer.
Find the channel ID of the YouTube channel you want to monitor. You can do this by going to the channel's page on YouTube and looking at the URL. The channel ID is the string of characters after "channel/".
Create a new text file in the directory where you want to download the videos. Name the file "channel_list.txt" and add the channel ID to the file on its own line.
Create a new batch file (with the extension .bat) in the same directory as the text file. Name the file "yt-dl.bat" and add the following code to the file:
Copy code@echo off
setlocal EnableDelayedExpansion
for /f "delims=" %%a in (channel_list.txt) do (
youtube-dl -ciw --no-continue --no-overwrites --download-archive archive.txt -o "%%a/%(upload_date)s - %(title)s.%(ext)s" "https://www.youtube.com/channel/%%a/videos"
)
Open CMD and navigate to the directory where you saved the text and batch files.
Type "yt-dl.bat" and press Enter. This will execute the batch file and begin downloading the videos from the channel specified in the text file.
This setup will automatically monitor the specified channel and download new videos as they are uploaded. The youtube-dl command uses the options -ciw which means to not continue partially downloaded files and not to overwrite files and the option --download-archive archive.txt which means to keep track of what files have been downloaded and not download them again. The -o option allows you to specify the output filename format which includes the upload date and the title of the video.
You can also set up a scheduled task to run the batch file at regular intervals, this way you don't have to manually run the batch file every time.