Files
SteamBase/update.bat
T
2026-11-09 09:05:15 +03:00

41 lines
1004 B
Batchfile

@echo off
setlocal
cd /d "%~dp0.."
set "DETAILS_LIMIT=0"
set /p "DO_DETAILS=Load Steam Store descriptions? [y/N]: "
if /i "%DO_DETAILS%"=="y" goto :ask_details
if /i "%DO_DETAILS%"=="yes" goto :ask_details
goto :import
:ask_details
set "DETAILS_LIMIT=200"
set /p "DETAILS_LIMIT=How many descriptions to load? [200]: "
if "%DETAILS_LIMIT%"=="" set "DETAILS_LIMIT=200"
set "NON_DIGIT="
for /f "delims=0123456789" %%A in ("%DETAILS_LIMIT%") do set "NON_DIGIT=1"
if defined NON_DIGIT (
echo Enter a number.
goto :ask_details
)
:import
python SteamBase\tools\import_steam.py
if errorlevel 1 goto :error
if "%DETAILS_LIMIT%"=="0" goto :covers
python SteamBase\tools\fetch_details.py --limit %DETAILS_LIMIT%
if errorlevel 1 goto :error
:covers
python SteamBase\tools\cache_covers.py --all
if errorlevel 1 goto :error
echo.
echo Done. Start the UI with SteamBase\start_web.bat
exit /b 0
:error
echo.
echo Something failed - see the message above.
pause
exit /b 1