rgnrk: I've been tinkering with it a little bit to add a couple of changes that were worthwhile for me :
- A new parameter -skippatches that skips downloading the patches (patches meaning files starting with patch% for the time being)
Ideally we would like to download the installer and any patch more up-to-date that that.
- A new parameter -onelanguage that downloads the files just for one language in -lang order. In my -lang es en case meaning that will only download the spanish installer. If there isn't the it would download the english installer.
(both very straighforward additions, as I don't know python at all).
Instead of:
downloadsOS = [game_item for game_item in item.galaxyDownloads if game_item.os_type in os_list]
I changed it to:
downloadsOS = []
for osname in os_list:
for game_item in item.downloads:
if game_item.os_type==osname:
if (not skippatches) or (skippatches and not game_item.name.startswith('patch')):
downloadsOS.append(game_item)
(for all three downloads, galaxyDownloads and sharedDownloads)
And instead of:
downloadslangs = [game_item for game_item in item.downloads if game_item.lang in valid_langs]
I changed it to:
downloadslangs = []
for validlang in valid_langs:
for game_item in item.downloads:
if game_item.lang==validlang:
downloadslangs.append(game_item)
if (onelanguage) and (downloadslangs):
break
(also for all three downloads, galaxyDownloads and sharedDownloads)
I think the forum ate your spacing which is super bad for python code.
Unfortunately this forum doesn't support code tags so you may want to try pastebin
If you want to make a pull request on the dev branch I'll take them too (though I might edit it a bit). I've been meaning to add something like this. Th