mirror of
https://github.com/zoffline/zwift-offline.git
synced 2026-06-12 19:11:33 -07:00
Update get_pro_names.py
This commit is contained in:
@@ -121,10 +121,9 @@ def get_pros(url, male, get_jersey, get_equipment, team_abbrv):
|
||||
|
||||
return data
|
||||
|
||||
tree = ET.parse('../cdn/gameassets/GameDictionary.xml')
|
||||
root = tree.getroot()
|
||||
tree = ET.fromstring(urllib.request.urlopen('http://cdn.zwift.com/gameassets/GameDictionary.xml').read())
|
||||
jerseys = {}
|
||||
for x in root.findall("./JERSEYS/JERSEY"):
|
||||
for x in tree.findall("./JERSEYS/JERSEY"):
|
||||
jerseys[x.get('name')] = int(x.get('signature'))
|
||||
|
||||
def main(argv):
|
||||
|
||||
Reference in New Issue
Block a user