Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Commit

Permalink
Added selection
Browse files Browse the repository at this point in the history
Added selection of server to generate download links.
  • Loading branch information
michelle1574 authored Aug 2, 2021
1 parent 7c08c1b commit e4809fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion down_uup.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ set /p "lng=Language code: "
set /p "edt=Edition: "
goto getfiles
:getfiles
aria2c -o"aria2_script.txt" "https://uup.rg-adguard.net/api/GetFiles?id=%id%&lang=%lng%&edition=%edt%&txt=yes"
echo 1. UUPDump
echo 2. UUP generation project
choice /c 12 /m "Select server"
if %errorlevel% equ 2 (aria2c -o"aria2_script.txt" "https://uup.rg-adguard.net/api/GetFiles?id=%id%&lang=%lng%&edition=%edt%&txt=yes") else if %errorlevel% equ 1 (aria2c -o"aria2_script.txt" "https://uupdump.net/get.php?id=%id%&pack=%lng%&edition=%edt%&aria2=2")
if not exist %uupfold% ( mkdir %uupfold%&goto work2 ) else ( goto work2 )
find /i "error" aria2_script.txt >nul
if %errorlevel% equ 0 goto LinkErrGen
Expand Down

0 comments on commit e4809fb

Please sign in to comment.