Cloudflare is on Crunchyroll's side for verification purposes, not on your machine.
The config.txt text you provided is ok. I tested it on my side, and there are no errors when tested with Firefox cookies.
That is why I am asking for the menu text because nothing should be changed there except the "MY_USER_AGENT" to "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0" in this case.
Code:
ECHO OFF
CLS
:MENU
ECHO.
ECHO ...............................................
ECHO Download Crunchyroll
ECHO ...............................................
ECHO.
ECHO 1 - Download via URL
ECHO 2 - Download via BATCH file
ECHO 3 - Check available Subtitle Languages
ECHO 4 - Check update for YT-DLP
ECHO 5 - Check YT-DLP version on your system and current version available online
ECHO 6 - Clear the YT-DLP cache folder
ECHO 7 - EXIT
ECHO.
SET /P M=Type 1, 2, 3, 4, 5, 6 or 7 then press ENTER:
IF %M%==1 GOTO URL
IF %M%==2 GOTO BATCH
IF %M%==3 GOTO SUBTITLE
IF %M%==4 GOTO UPDATE
IF %M%==5 GOTO VERSION
IF %M%==6 GOTO CLEAR
IF %M%==7 GOTO EOF
ECHO.
ECHO %M% is not a valid input.
GOTO MENU
:URL
CLS
ECHO ...............................................
ECHO Download via URL
ECHO ...............................................
ECHO.
SET /P URL="[Enter the video URL of the video to download] "
yt-dlp.exe --config-locations "config.txt" "%URL%"
ECHO ...............................................
ECHO Done.
PAUSE
CLS
GOTO MENU
:BATCH
CLS
ECHO ...............................................
ECHO Download via BATCH file
ECHO ...............................................
ECHO.
@echo off
CLS
setlocal enabledelayedexpansion
:input
set count=100
for /f "delims=" %%a in ('dir /b batch') do (
set /a count+=1
echo !count:~-2!] %%a
)
set /a countMax=count-100
set "countNr=%count:~-2%"
ECHO.
<nul set /p "=Enter the number of the batch file to use: (01...%countNr%, 00 for Menu): "
choice /c 1234567890 /n >nul
set first=%errorlevel:~-1%
<nul set /p "=%first%"
choice /c 1234567890 /n >nul
echo %errorlevel:~-1%
set ch=%first%%errorlevel:~-1%
REM echo that was %ch%
set /a line=1%ch%-101
if "%ch%" == "00" goto escape
if %ch% gtr %countMax% echo bad input&goto :input
for /f "delims=" %%a in ('dir /b batch^|more +%line%') do set "file=%%a"&goto :cont
:cont
ECHO.
echo You selected: %ch% - %file%
ECHO.
echo Task started for batch file: %file%.
ECHO.
yt-dlp.exe --config-locations "config.txt" --batch-file "batch\%file%"
PAUSE
CLS
GOTO MENU
:escape
echo you choose '00' for exit.
GOTO MENU
:UPDATE
CLS
ECHO ...............................................
ECHO Check nightly update for YT-DLP
ECHO ...............................................
ECHO.
yt-dlp.exe --update-to nightly
PAUSE
CLS
GOTO MENU
:SUBTITLE
CLS
ECHO ...............................................
ECHO Check available Subtitle Languages
ECHO ...............................................
ECHO.
SET /P URL="[Enter the video URL to check available subtitle languages] "
yt-dlp.exe --verbose --no-check-certificate --no-geo-bypass --list-subs --user-agent "MY_USER_AGENT" --cookies-from-browser firefox "%URL%"
ECHO ...............................................
ECHO Done.
PAUSE
CLS
GOTO MENU
:VERSION
CLS
ECHO ...............................................
ECHO Check YT-DLP version on your system
ECHO and current version available online
ECHO ...............................................
ECHO.
yt-dlp.exe --version
PAUSE
CLS
GOTO MENU
:CLEAR
CLS
ECHO ...............................................
ECHO Clear the YT-DLP cache folder
ECHO ...............................................
ECHO.
yt-dlp.exe --rm-cache-dir
PAUSE
CLS
GOTO MENU
[code]