Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differentiate between Windows, Linux and MacOS #10

Closed
lostprophet opened this issue Mar 8, 2022 · 6 comments
Closed

Differentiate between Windows, Linux and MacOS #10

lostprophet opened this issue Mar 8, 2022 · 6 comments
Milestone

Comments

@lostprophet
Copy link

Is there any way to differentiate between Windows, Linux and MacOS versions?
For example if I want to download all Windows versions of all games (since I don't use Linux or MacOS)?

Currently as I see it really downloads everything, even if I don't need Linux or MacOS.

@Emersont1
Copy link
Owner

I don't think so - I'll have to check the API, It was designed as a way to archive the downloads onto my NAS to just take all the downloadables for a product

@Emersont1
Copy link
Owner

Okay, having had a look at the API output, that's eminently doable, I'll open a PR in the next couple of days looking at this

in short, it'll be looking at the traits

[
    {
        "filename": "Skelerun-Win.zip",
        "size": 61275923,
        "id": 3007740,
        "storage": "hosted",
        "traits": [
            "p_windows"
        ],
        "game_id": 747607,
        "updated_at": "2020-11-23T23:21:48.000000000Z",
        "md5_hash": "824f00808df1532917e8e89550dd66bd",
        "position": 0,
        "created_at": "2020-11-23T22:44:14.000000000Z",
        "type": "default"
    },
    {
        "filename": "Skelerun-Mac.zip",
        "size": 62800229,
        "id": 3007741,
        "storage": "hosted",
        "traits": [
            "p_osx"
        ],
        "game_id": 747607,
        "updated_at": "2020-11-23T23:21:48.000000000Z",
        "md5_hash": "57edc9b88461c8b158531a9269b9560a",
        "position": 1,
        "created_at": "2020-11-23T22:44:23.000000000Z",
        "type": "default"
    },
    {
        "filename": "Skelerun-Lin.zip",
        "size": 62281140,
        "id": 3007742,
        "storage": "hosted",
        "traits": [
            "p_linux"
        ],
        "game_id": 747607,
        "updated_at": "2020-11-23T23:21:48.000000000Z",
        "md5_hash": "49808bb81c90647f37333853e2eee7c2",
        "position": 2,
        "created_at": "2020-11-23T22:44:26.000000000Z",
        "type": "default"
    }
]

which is blank if multiplatform or p_ followed by the operating system

@Emersont1 Emersont1 added this to the 1.3 Release milestone Mar 16, 2022
@lostprophet
Copy link
Author

Wow, awesome, thank you very much for checking :)

@lroellin
Copy link

lroellin commented Mar 21, 2022

@Emersont1 a suggestion as I had some thoughts about this already. I see 2 use cases that differ by how to go with non-digital stuff (or non-platform specific stuff)

  • People who want to download everything that's for Windows (Win only)
  • People who want to download everything but exclude anything not for their OS (Win only + all other non-specific stuff)

Hopefully you get what I mean :) maybe you can differentiate between the 2 use cases (Windows being a placeholder of course)

Thank you for the hard work btw, it helped me download the biiig Ukranian bundle :)

@Emersont1
Copy link
Owner

Hi, my plan is to let people specify desired platform (downloads that + the cross platform stuff)

Through something like -p windows or similar, abd just default to all

@Emersont1
Copy link
Owner

This has been added in line for the v2 release, I'm closing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants