tor-dl 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -208,13 +208,26 @@ Place `upload.bat` in the same folder where you added to your search script ment
|
|
|
208
208
|
@echo off
|
|
209
209
|
if "%~1"=="" (
|
|
210
210
|
echo Usage: upload.bat "full\path\to\file.mp4"
|
|
211
|
+
echo Drag and drop a file onto the script also works.
|
|
211
212
|
exit /b 1
|
|
212
213
|
)
|
|
213
214
|
|
|
214
215
|
set "FILE=%~1"
|
|
215
|
-
set "REMOTE=http://192.168.1.
|
|
216
|
+
set "REMOTE=http://192.168.1.232/upload.json"
|
|
216
217
|
|
|
217
|
-
|
|
218
|
+
if not exist "%FILE%" (
|
|
219
|
+
echo Error: File not found: "%FILE%"
|
|
220
|
+
exit /b 1
|
|
221
|
+
)
|
|
222
|
+
|
|
223
|
+
echo Uploading: %~nx1
|
|
224
|
+
curl --progress-bar -F "file=@%FILE%" "%REMOTE%" -o NUL
|
|
225
|
+
|
|
226
|
+
if %errorlevel%==0 (
|
|
227
|
+
echo Upload complete.
|
|
228
|
+
) else (
|
|
229
|
+
echo Upload failed. Check connection or server.
|
|
230
|
+
)
|
|
218
231
|
```
|
|
219
232
|
|
|
220
233
|
**Note:** Replace `192.168.1.222` with your device's actual IP address.
|