diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eccbf58 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +tools \ No newline at end of file diff --git a/ARCHIVE/DuckStation_cover_downloader.exe b/ARCHIVE/DuckStation_cover_downloader.exe deleted file mode 100644 index 71daf56..0000000 Binary files a/ARCHIVE/DuckStation_cover_downloader.exe and /dev/null differ diff --git a/ARCHIVE/version b/ARCHIVE/version deleted file mode 100644 index d3827e7..0000000 --- a/ARCHIVE/version +++ /dev/null @@ -1 +0,0 @@ -1.0 diff --git a/ARCHIVE/DuckStation_cover_downloader.py b/DuckStation-cover-downloader/DuckStation cover downloader.py similarity index 87% rename from ARCHIVE/DuckStation_cover_downloader.py rename to DuckStation-cover-downloader/DuckStation cover downloader.py index fa3f152..9eddd39 100644 --- a/ARCHIVE/DuckStation_cover_downloader.py +++ b/DuckStation-cover-downloader/DuckStation cover downloader.py @@ -26,9 +26,9 @@ import urllib.request import os, sys -COVERS_URL = 'https://github.com/LouiseSulyvahn/DuckStation_Cover_Downloader/raw/main/covers/' -VERSION_URL = 'https://raw.githubusercontent.com/LouiseSulyvahn/DuckStation_Cover_Downloader/main/version' -VERSION = 1.0 +COVERS_URL = 'https://raw.githubusercontent.com/xlenore/psx-covers/main/covers/' +VERSION_URL = 'https://raw.githubusercontent.com/xlenore/psx-covers/main/DuckStation-cover-downloader/version' +VERSION = 1.1 def path(): @@ -73,19 +73,20 @@ def download_covers(serial_list:list): # Download Covers print('[LOG]:',colored(f'Downloading {game_serial} cover...', 'green')) try: urllib.request.urlretrieve(f'{COVERS_URL}{game_serial}.jpg', f'covers/{game_serial}.jpg') - sleep(1) + sleep(0.1) except HTTPError: - print('[WARNING]',colored(f'{game_serial} Not found. Report it in GitHub please...','yellow')) + print('[WARNING]',colored(f'{game_serial} Not found. Skipping...','yellow')) else: print('[WARNING]:',colored(f'{game_serial} already exist in \covers. Skipping...','yellow')) def run(): - check_version() + #check_version() download_covers(serial_list()) - print('[LOG]:', colored(f'Done!', 'green')) + print('[LOG]:', colored(f'Done!, please report Not found | Low quality | Wrong covers in GitHub.', 'green')) input() +os.system(f'title DuckStation Cover Downloader {VERSION}') init() run() \ No newline at end of file diff --git a/ARCHIVE/README.md b/DuckStation-cover-downloader/README.md similarity index 100% rename from ARCHIVE/README.md rename to DuckStation-cover-downloader/README.md diff --git a/DuckStation-cover-downloader/_dist.bat b/DuckStation-cover-downloader/_dist.bat new file mode 100644 index 0000000..4b2554d --- /dev/null +++ b/DuckStation-cover-downloader/_dist.bat @@ -0,0 +1,2 @@ +pyinstaller "DuckStation cover downloader.py" --onefile --clean --distpath "" +@RD /S /Q "build" \ No newline at end of file diff --git a/ARCHIVE/requirements.txt b/DuckStation-cover-downloader/requirements.txt similarity index 100% rename from ARCHIVE/requirements.txt rename to DuckStation-cover-downloader/requirements.txt diff --git a/DuckStation-cover-downloader/version b/DuckStation-cover-downloader/version new file mode 100644 index 0000000..b123147 --- /dev/null +++ b/DuckStation-cover-downloader/version @@ -0,0 +1 @@ +1.1 \ No newline at end of file diff --git a/README.md b/README.md index 797feb4..bb809b7 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ - [PSX Covers](https://github.com/xlenore/psx-covers#psx-covers "PSX Covers") - [Duckstation Setup](https://github.com/xlenore/psx-covers#duckstation-setup "Duckstation Setup") +- [Duckstation Cover Downloader](https://github.com/xlenore/psx-covers#duckstation-Cover-Downloader "Duckstation Setup") ## PSX Covers | Serial | Available/Total | Percentage | @@ -46,6 +47,14 @@ DuckStation has its own cover downloader, upgrade to version **0.1-5227** or hig [![](https://i.imgur.com/FJWeE0e.gif)](https://i.imgur.com/jTGL0HH.gif) +## Duckstation Cover Downloader + +This is an alternative in case you don't want to be copying and pasting the repository url every time you want to download a cover. +- Download [Duckstation Cover Downloader](https://github.com/xlenore/psx-covers/raw/main/Duckstation-cover-downloader/Duckstation%20cover%20downloader.exe) | ([Source Code](https://raw.githubusercontent.com/xlenore/psx-covers/main/Duckstation-cover-downloader/Duckstation%20cover%20downloader.py)) +- Put **Duckstation Cover Downloader.exe** in **Documents\DuckStation** folder +- Run the App every time you want to download covers +- Enjoy :) + ## Credits * psxdatacenter.com * duckstation.org \ No newline at end of file