Skip to content

Commit b751dfe

Browse files
committed
Use the us depot for sea maps.
It seems as though sea doesn't have its own depot. This will probably affect s2gs files as well. We've not yet confirmed.
1 parent 96ad23a commit b751dfe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sc2reader/resources.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,8 @@ def __init__(self, map_file, filename=None, gateway=None, map_hash=None, **optio
602602
def get_url(cls, gateway, map_hash):
603603
"""Builds a download URL for the map from its components."""
604604
if gateway and map_hash:
605+
# it seems like sea maps are stored on us depots.
606+
gateway = 'us' if gateway=='sea' else gateway
605607
return cls.url_template.format(gateway, map_hash)
606608
else:
607609
return None

0 commit comments

Comments
 (0)