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

Downloading Chineese Hosted Maps #200

Open
Kaszanas opened this issue Apr 25, 2024 · 3 comments
Open

Downloading Chineese Hosted Maps #200

Kaszanas opened this issue Apr 25, 2024 · 3 comments

Comments

@Kaszanas
Copy link

Based on this piece of code:

def get_resource_url(region, hash, type):
url_template = "{}://{}-s2-depot.{}/{}.{}"
scheme = "https"
domain = "classic.blizzard.com"
if region == "sea":
region = "us"
elif region == "cn":
scheme = "http"
domain = "battlenet.com.cn"
return url_template.format(scheme, region, domain, hash, type)

There is a capability of downloading maps that are supposed to be hosted on Chinese servers. Unfortunately these are no longer available, is there a workaround that would allow to get such a map from another server?

Test data:
2016_IEM_11_Shanghai.zip

@Kaszanas
Copy link
Author

Also there is an issue with some replays that are played on a "Public Test" region.

Test data:
2018_WCS_Valencia.zip

@StoicLoofah
Copy link
Collaborator

Hmm, the short answer is I don't know. The last time this came up was #154

And I seem to remember vaguely that Blizzard made other changes in the past with how they were hosting content. TBH, I wouldn't be surprised if the data was just deprecated or deleted in the sands of time

@Kaszanas
Copy link
Author

Kaszanas commented Apr 25, 2024

Hmm, the short answer is I don't know. The last time this came up was #154

And I seem to remember vaguely that Blizzard made other changes in the past with how they were hosting content. TBH, I wouldn't be surprised if the data was just deprecated or deleted in the sands of time

See, so now if I want to archive some data, what should be downloaded so that it can be safe, and fare well agains the test of time?

It is easy enough to collect replays, but what about their dependencies? Is there a way to make sure that all of the current replays will work even if Blizzard deletes some more content?

@StoicLoofah
My guess is that the cache handles contain all of the dependencies that should be downloaded?

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

2 participants