eddie3 / gogrepo

Python-based tool for downloading all your GOG.com game and bonus collections to your local computer for full offline enjoyment.
481 stars 114 forks source link

SyntaxError: EOL while scanning string literal #70

Open CalAlaera opened 1 year ago

CalAlaera commented 1 year ago

It appears that GOG is returning a multi-line string as part of a changelog, which is causing problems for the script. This occurs using both python2 and python3. The full output of both commands is identical but included below for completeness, in the hope it will be useful. Thanks. :)

$ python2 --version
Python 2.7.16

$ python2 ./gogrepo.py update
05:59:48 | loading local manifest...
05:59:48 | fatal...
Traceback (most recent call last):
  File "./gogrepo.py", line 1170, in <module>
    main(process_argv(sys.argv))
  File "./gogrepo.py", line 1145, in main
    cmd_update(args.os, args.lang, args.skipknown, args.updateonly, args.id)
  File "./gogrepo.py", line 607, in cmd_update
    gamesdb = load_manifest()
  File "./gogrepo.py", line 259, in load_manifest
    return eval(ad)
  File "<string>", line 63508
    '<li>Fixed: an issue with the Force of Nature Cornerstone not taking existing woodcutters into ac
                                                                                                    ^
SyntaxError: EOL while scanning string literal

$ python3 --version
Python 3.7.3

$ python3 ./gogrepo.py update
06:02:55 | loading local manifest...
06:02:55 | fatal...
Traceback (most recent call last):
  File "./gogrepo.py", line 1170, in <module>
    main(process_argv(sys.argv))
  File "./gogrepo.py", line 1145, in main
    cmd_update(args.os, args.lang, args.skipknown, args.updateonly, args.id)
  File "./gogrepo.py", line 607, in cmd_update
    gamesdb = load_manifest()
  File "./gogrepo.py", line 259, in load_manifest
    return eval(ad)
  File "<string>", line 63508
    '<li>Fixed: an issue with the Force of Nature Cornerstone not taking existing woodcutters into ac
                                                                                                    ^
SyntaxError: EOL while scanning string literal