Modelsson: Greetings and a big thank you for this great script!
I used it on my WIN10 with no problem. Now on WIN1124H2 some problems have arisen.
I solved it with using python 2+ since 3+ gave me file writing errors.
Now the update and download, clean and trash commands work flawlessly, but the verify command is still giving me problems that I cannot solve and can't find the solution to on stackoverflow. This is what I get in my window:
20:01:34 | scanning manifest for renames...
20:01:34 | fatal...
Traceback (most recent call last):
File "J:\GOG\gogrepo.py", line 400, in __getattr__
return self[key]
~~~~^^^^^
KeyError: 'unreleased'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "J:\GOG\gogrepo.py", line 4263, in <module>
main(process_argv(sys.argv))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "J:\GOG\gogrepo.py", line 4060, in main
cmd_verify(args.gamedir, args.skipextras,args.skipids,check_md5, check_filesize, check_zips, args.delete,not args.noclean,args.ids, args.os, args.lang,args.skipgalaxy,args.skipstandalone,args.skipshared, args.skipfiles, args.forceverify,args.permissivechangeclear)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "J:\GOG\gogrepo.py", line 3632, in cmd_verify
if itm.unreleased:
^^^^^^^^^^^^^^
File "J:\GOG\gogrepo.py", line 402, in __getattr__
raise AttributeError(key)
AttributeError: unreleased
Does anybody know what could be the problem?
The command I try to write is "verify -skipextras"

Kalanyr: Apologies I didn't see this. You've somehow got an item in your manifest without the unreleased attribute set. That shouldn't be possible for current items, but if you've brought in an old manifest and never done a full update this could happen. I'll add in appropriate error handling for this.
No worries, friend. I actually did a whole new full update. The new script even suggested that an incompatible manifest was found and what to do with it. I pressed "discard" which I think means that it deleted the old one and made a new one. Then I saw the new functionality you implemented (the two *.bak files) and I knew it had to be working.
I'm doing a full update right now and will see if it will fix anything.
UPDATE:
While getting the manifest, some errors have come to light which I haven't noticed before:
17:07:23 | ( 93 / 457) fetching game details for dome_keeper...
17:07:23 | The handled exception was:
17:07:23 | error
Traceback (most recent call last):
File "J:\GOG\gogrepo.py", line 400, in __getattr__
return self[key]
~~~~^^^^^
KeyError: 'unreleased'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "J:\GOG\gogrepo.py", line 2268, in cmd_update
handle_game_updates(gamesdb[item_idx], item,strict, strictDownloadsUpdate, strictExtrasUpdate)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "J:\GOG\gogrepo.py", line 1085, in handle_game_updates
if (candidate.md5 != None and candidate.md5 == newExtra.md5 and candidate.size == newExtra.size) or ( newExtra.unreleased and candidate.unreleased ):
^^^^^^^^^^^^^^^^^^^^
File "J:\GOG\gogrepo.py", line 402, in __getattr__
raise AttributeError(key)
AttributeError: unreleased
17:07:23 | End exception report.
And I got the same for: "dying_light_the_following_enhanced_edition", "metro_exodus" and "shadow_tactics_blades_of_the_shogun".
Seems that the manifest completes with errors but I am able to download nevertheless. But the verify command fails to start because of manifest errors.
Then I got this message also, but only for this game, even though my whole library is downloaded.
17:09:01 | (141 / 457) fetching game details for grim_dawn...
17:09:05 | -> setup_grim_dawn_-_forgotten_gods_1.2.1.5a_(79771).exe already exists in this game entry with same size/md5, skipping adding this file to the manifest
17:09:05 | -> setup_grim_dawn_-_forgotten_gods_1.2.1.5a_(79771)-1.bin already exists in this game entry with same size/md5, skipping adding this file to the manifest