Right now I'm trying to go through my YouTube watch history to find a video I watched years ago, however I don't know the title of it. I got all of my history into a text file so I'm able to load the text file and set "arrays" for each video (name, creator, and date and time it was watched). Right now I have a program that will take a user input string
set /p checkString=
then run it across all of the title variables (that may include ANY character, special character, spaces, and even unicode) one of the title variables would be exactly as follows: "Watched WORKING JAN 2020 Solo Skip ALL Doomsday Heist Setup Missions Easy Glitch | PS4 XBOX1 GTA Online"
echo !currentVideoTitle! | findstr /i "%checkString%" >nul & if errorlevel 1 (
echo Title contains match
) else (
echo Title doesn't contain match
)
By using that command, it only ever returns errorlevel 1 and I know that through some level of manipulation my desired outcome is possible such as
if !currentVideoTitle:~%loopCount%,%checkStringLength%!==!checkString!
but that would be massively slower when I'm sorting through roughly 15k videos