Skip to content

Commit

Permalink
rm old yt-dlp check, better updater
Browse files Browse the repository at this point in the history
  • Loading branch information
eppic committed Feb 18, 2022
1 parent 43bcc1b commit 8961087
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions bin/Launcher.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ title ytBATCH %version%
if not exist ..\cfg\youtube-dl.conf copy nul ..\cfg\youtube-dl.conf

::remove temporary files
del ..\Updater.bat
if exist "..\Updater.bat" del ..\Updater.bat

::echo off switch ("echo")
if /i "%mecho%"=="" (set mcls=cls) else (set mcls=echo -)
Expand All @@ -26,15 +26,6 @@ title ytBATCH %version%
if "%CleanQueueStart%"=="T" del ..\QueueList.bat
%mcls%

::old version yt-dl check
if not exist ..\exe\youtube-dl.exe goto oldvcheckpassed
if exist ..\exe\yt-dlp.exe goto oldvcheckpassed
echo ytBATCH has switched from youtube-dl.exe to yt-dlp.exe
echo This requires the latest version of yt-dlp.
pause
%mcls%
:oldvcheckpassed

::Check File Integrity...
::youtube-dl
if "%ytdlv%"=="yt-dlp" goto ChFIytdlPassed
Expand All @@ -48,10 +39,8 @@ title ytBATCH %version%

::AutoUpdate
if /i not "%AUEnb%"=="T" goto :AU_Passed
if not exist AutoUpdate.lnk powershell.exe "powershell -ExecutionPolicy Bypass -File AutoUpdate.ps1"
start AutoUpdate.lnk
start /min .\AutoUpdate.bat
if not exist ..\update.info goto AU_Passed

set /p latestversion=<..\update.info

:UpMsg_UpdateDL
Expand Down

0 comments on commit 8961087

Please sign in to comment.