Skip to content

Commit

Permalink
Create media downloader
Browse files Browse the repository at this point in the history
Create `media.bat` to download exported media files.
  • Loading branch information
WRtux committed Feb 5, 2021
1 parent 4df0b76 commit 8de4ef5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/standalone/media.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@echo off
set /p L=List:
if not exist "%L%" exit
for /f "tokens=1,2 delims= " %%E in (%L%) do (
if not exist media\%%F (
echo Get %%E
mkdir media\%%F
rmdir media\%%F
curl -A "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" -m 10 --retry 2 https:%%E >media\%%F
)
)
pause

0 comments on commit 8de4ef5

Please sign in to comment.