Sude- / lgogdownloader

LGOGDownloader is unofficial downloader to GOG.com for Linux users. It uses the same API as the official GOG Galaxy.
https://sites.google.com/site/gogdownloader/
Do What The F*ck You Want To Public License
698 stars 67 forks source link

Feature: json output for --list-details #235

Closed LuckyTurtleDev closed 1 year ago

LuckyTurtleDev commented 1 year ago

It would be nice to have an option to enable json output for lgogdownloader --list-details.

Sude- commented 1 year ago

c9198d6 adds json output option --list-details is removed and replaced by --list-format which is used to select output format

"no_details" is the same as --list previously and the default value "details" is the same as --list-details was previously "json" is JSON formatted output

LuckyTurtleDev commented 1 year ago

thanks for the fast update, but sadly it seems not to work:

lgogdownloader --list-format j
LGOGDownloader 3.9.9e49b6f
Options:

  -h [ --help ]                         Print help message
...

I have also tried to json or n instead of j, but it does only show the help message.

Sude- commented 1 year ago

--list-format only selects the formatting for --list lgogdownloader --list --list-format j should do what you want

Sude- commented 1 year ago

Actually I should probably just combine the options so --list is also used for selecting the format. I'll probably do that later today or tomorrow

Sude- commented 1 year ago

It turned out to be very simple change so I just pushed it in 9d188e7 --list is now used to select the formatting so lgogdownloader --list j is what you want

LuckyTurtleDev commented 1 year ago

Thanks again. Works fine now.

Actually I should probably just combine the options so --list is also used for selecting the format.

Yes, this is a much more intuitive.