nicohman / wyvern

A simple CLI client for installing and maintaining linux GOG games
GNU General Public License v3.0
87 stars 5 forks source link

Can I get some metadata from the file before download? #6

Closed sigboe closed 5 years ago

sigboe commented 5 years ago

Can you implement fetching some metadata before downloading?

Wishlist:

nicohman commented 5 years ago

You can get everything except possibly whether or not it's a dosbox game(that seems to only be available on the website itself) through the API, but at that point it really seems like it's outside of the scope of wyvern. It would be a much better suit to use the gog crate I made for wyvern and write your own simple rust program using it. Is there a specific reason you need wyvern to provide this metadata?

sigboe commented 5 years ago

Is it possible to get the text in the system requirements? If so it should be possible to search for DosBOX.

nicohman commented 5 years ago

It doesn't appear so. The system requirements are only available when they're served directly on the store page for the product--they aren't retrieved via an API like almost everything else.

sigboe commented 5 years ago

Is it possible to get the website url for the game?

nicohman commented 5 years ago

Yup. That's returned by both of the filtered_products endpoints as url. Once you have that, it's easy to use a HTML parser to interpret the page and look for an element with the class dosbox-info.

nicohman commented 5 years ago

Additional metadata added from issue #7.

sigboe commented 5 years ago

Thanks

sigboe commented 5 years ago

@nicohman fro future refrence, here is how to read the description

http://api.gog.com/products/1207659026?expand=description

It does not require login or authentication