This is a script that manages updates form Retroplay's Amiga WHDLoad directories on EAB FTP server.
It is written in Python 2 (with ongoing work to make it compatible with Python 3), and was tested on Ubuntu 14.04 64bit on ext4 filesystem (probably doesn't work on NTFS when Amiga files have "funny" names). It may work on non-Linux systems, but that wasn't tested. Amiga side was tested on real Amiga 1200 with WB 3.1.
Retroplay changed directory names for titles starting with a number from "#" to "0". If you use this script, please change the followng directory names
Retroplay/Commodore_Amiga_-_WHDLoad_-_Games/#/
Retroplay/Commodore_Amiga_-_WHDLoad_-_Demos/#/
to
Retroplay/Commodore_Amiga_-_WHDLoad_-_Games/0/
Retroplay/Commodore_Amiga_-_WHDLoad_-_Demos/0/
and download updated script.
Script now uses progressbar library, so it needs python-progressbar package on Debian-based systems.
For basic usage, you'll need directory structures as defined by Turran from EAB:
Demos_WHDLoad/
0-9/
A/
B/
...
Games_WHDLoad/
0-9/
A/
B/
...
Games_WHDLoad_AGA/
0-9/
A/
B/
...
and Retroplay's directory structures from EAB FTP:
Retroplay/
Commodore_Amiga_-_HD_Loaders_-_Games/
Commodore_Amiga_-_JST_-_Games/
Commodore_Amiga_-_WHDLoad_-_Demos/
Commodore_Amiga_-_WHDLoad_-_Games/
Commodore_Amiga_-_WHDLoad_-_Games_(Beta_&_Unreleased)/
Commodore_Amiga_-_WHDLoad_-_Magazines/
To get these directories, unpack Directories.tar.gz to the same place where PyRetroplay script is.
It is advisable that you download initial Retroplay's WHDLoad collection from his cloud storage, and to use script for subsequent updates from FTP. It is also advisable to turn off AmigDOS script generation on first run (set GenerateAmigaScript to False inside PyRetroplay.py).
When script starts, it will check FTP server for new files, download them, and unpack to appropriate directories, updating existing files:
Script keeps all its data inside local database (actually, just a json file, archivedata.json). That file just caches information about archives, and makes script execution fast (except for the first run, when it scans all the archives). If you want to rebuild everything, just delete json file and unpacked games/demos and run the script.
During unpacking, an AmigaDOS script will be generated, along with directory with all new archives. That script (and its directory) is intended to be transferred and then run on real Amiga, and it will update existing collection on Amiga HD. It is assumed that the user has identical directory structures on PC and on Amiga and that script is run on Amiga inside drive/directory where Demos_WHDLoad, Games_WHDLoad and Games_WHDLoad_AGA directories are:
Demos_WHDLoad/
Games_WHDLoad/
Games_WHDLoad_AGA/
update2017-04-18-1-files/ <-- directory with new archives
update2017-04-18-1 <-- update script (execute update2017-04-18-1)
AmigaDOS update script will check if it is in the right place, ask the user if it wants to update and then repeat the process that PyRetroplay did on PC side:
After update is successfully completed, you can delete update script and its directory (or keep it for date reference).
From version 1.1, script switched from 7z to The Unarchiver (command-line version). On Debian-based systems, you can install it with:
sudo apt-get install unar
Other than that, it needs Python 2.7.x or later version of Python 2.
For Amiga script to work, you'll need LHA and LZX archivers for Amiga, and Workbench 3.0 or later (it probably works on 2.0 too, but for now it is not tested).