File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -144,12 +144,13 @@ class Player(object):
144144 url_template = "http://%s.battle.net/sc2/en/profile/%s/%s/%s/"
145145
146146 def __init__ (self , pid , data , realm = "us" ):
147+ # TODO: get a map of realm,subregion => region in here
147148 self .pid = pid
148149 self .realm = realm
149150 self .name = data [0 ].decode ("hex" )
150151 self .uid = data [1 ][4 ]
151- self .uidIndex = data [1 ][2 ]
152- self .url = self .url_template % (self .realm , self .uid , self .uidIndex , self .name )
152+ self .subregion = data [1 ][2 ]
153+ self .url = self .url_template % (self .realm , self .uid , self .subregion , self .name )
153154 self .actual_race = data [2 ].decode ("hex" )
154155 self .choosen_race = "" # Populated from the replay.attribute.events file
155156 self .rgba = dict ([
You can’t perform that action at this time.
0 commit comments