my changes so far
This commit is contained in:
26
autoThumbs.bat
Normal file
26
autoThumbs.bat
Normal file
@@ -0,0 +1,26 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
REM Always use 'nathan' as NAS username
|
||||
set NASUSER=nathan
|
||||
|
||||
REM Prompt for Windows path
|
||||
set /p WINPATH=Enter the full Windows path to your NAS directory (e.g., R:\YouTube\Streams\MixerTwitch):
|
||||
if "%WINPATH%"=="" (
|
||||
echo No path provided. Exiting.
|
||||
exit /b
|
||||
)
|
||||
|
||||
REM Run psthumbgen.py
|
||||
python psthumbgen.py --directory "%WINPATH%"
|
||||
|
||||
REM Convert Windows path to NAS path
|
||||
set "RELPATH=%WINPATH:~3%"
|
||||
set "RELPATH=%RELPATH:\=/%"
|
||||
set "NASPATH=/volume1/Hydra/%RELPATH%"
|
||||
|
||||
REM SSH cleanup commands (run separately)
|
||||
ssh %NASUSER%@hydra "find '%NASPATH%' -type d -name '@eaDir' -exec rm -rf '{}' \;"
|
||||
ssh %NASUSER%@hydra "find '%NASPATH%' -depth -type d -name 'eaDir_tmp' -exec bash -c 'mv \"\$1\" \"\$(dirname \"\$1\")/@eaDir\"' _ {} \;"
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user