find all installer downloads, not only the first one
This commit is contained in:
parent
7be923459e
commit
3f184ade1f
@ -7,6 +7,8 @@ It builds on the work of the [unofficial GOG API Documentation](https://gogapido
|
||||
|
||||
This is the first time I am building something with rust, so beware :)
|
||||
|
||||
**Please note that this is alpha software, you should not trust it.**
|
||||
|
||||
# Configuration
|
||||
The configuration file is in the config folder as described by the xdg specification
|
||||
with a prefix of `gog-sync`.
|
||||
|
@ -311,8 +311,7 @@ impl<'a> Gog<'a> {
|
||||
for system in systems.keys() {
|
||||
for real_downloads in systems.get(system) {
|
||||
for real_download in real_downloads.as_array() {
|
||||
let download = &real_download[0];
|
||||
|
||||
for download in real_download {
|
||||
if !download.is_object() ||
|
||||
!download.as_object().unwrap().contains_key("manualUrl") {
|
||||
error!("Skipping an installer for {}", game.title);
|
||||
@ -337,6 +336,7 @@ impl<'a> Gog<'a> {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ok(game)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user