Skip to content

Commit b4a6a79

Browse files
committed
Changed MatchHistory to MapHeader
1 parent 971a117 commit b4a6a79

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

sc2reader/factories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from sc2reader import exceptions
1515
from sc2reader import utils
1616
from sc2reader import log_utils
17-
from sc2reader.resources import Replay, Map, GameSummary, MapInfo, MatchHistory
17+
from sc2reader.resources import Replay, Map, GameSummary, MapInfo, MapHeader
1818

1919
class SC2Factory(object):
2020
"""

sc2reader/resources.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -492,10 +492,10 @@ def __init__(self, info_file, filename=None, **options):
492492
self.map_name = self.data[0][7]
493493
self.language = self.data[0][13]
494494
self.s2mh_hash = ''.join([hex(ord(x))[2:] for x in self.data[0][1][8:]])
495-
self.s2mh_url = MatchHistory.url_template.format(self.data[0][1][6:8], self.s2mh_hash)
495+
self.s2mh_url = MapHeader.url_template.format(self.data[0][1][6:8], self.s2mh_hash)
496496

497-
class MatchHistory(Resource):
497+
class MapHeader(Resource):
498498
url_template = 'http://{0}.depot.battle.net:1119/{1}.s2mh'
499-
def __init__(self, history_file, filename=None, **options):
500-
super(MatchHistory, self).__init__(history_file, filename,**options)
501-
self.data = utils.ReplayBuffer(history_file).read_data_struct()
499+
def __init__(self, header_file, filename=None, **options):
500+
super(MapHeader, self).__init__(header_file, filename,**options)
501+
self.data = utils.ReplayBuffer(header_file).read_data_struct()

0 commit comments

Comments
 (0)