update
This commit is contained in:
parent
bd7f69e14d
commit
8302339932
2
main.py
2
main.py
@ -192,6 +192,7 @@ def parse_xpi_detail(plugin: AddonInfo, release: AddonInfoRelease, release_asset
|
||||
xpi_filename=f'{plugin.owner}#{plugin.repository}+{release.tagName}@{release_asset["id"]}.xpi')
|
||||
|
||||
if details and details.update_url and details.id and details.version:
|
||||
try:
|
||||
update_json_resp = requests.get(details.update_url,
|
||||
headers=github_api_headers(github_token=kwargs.get('github_token')))
|
||||
update_json_info = json.loads(update_json_resp.content)
|
||||
@ -208,6 +209,7 @@ def parse_xpi_detail(plugin: AddonInfo, release: AddonInfoRelease, release_asset
|
||||
'github': xpi_url,
|
||||
}
|
||||
break
|
||||
except: pass
|
||||
return details
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user