Update patcher.py

This commit is contained in:
Leon 2023-08-25 11:20:57 +02:00 committed by GitHub
parent 3c17427bac
commit a79b3d3254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ class Patcher(object):
:return: path to downloaded file
"""
u = f'{self.url_repo}/known-good-versions-with-downloads.json'
allv = json.loads(urlopen(u).read()
allv = json.loads(urlopen(u).read())
section = [x for x in d['versions'] if x['version']==self.version_main][0]
downloads = section['downloads']['chromedriver']
chosen = [o for o in downloads if self.zip_name in o['platform']][0]