mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Core: Update information will be retrieved from GitHub repo only
This commit is contained in:
parent
19e18bcfe1
commit
e0a4bd6a5d
@ -1,8 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
name = 'TWBlue'
|
name = 'TWBlue'
|
||||||
short_name='twblue'
|
short_name='twblue'
|
||||||
update_url = 'https://twblue.es/updates/updates.php'
|
update_url = 'https://raw.githubusercontent.com/mcv-software/TWBlue/next-gen/updates/updates.json'
|
||||||
mirror_update_url = 'https://raw.githubusercontent.com/mcv-software/TWBlue/next-gen/updates/updates.json'
|
|
||||||
authors = ["Manuel Cortéz", "José Manuel Delicado"]
|
authors = ["Manuel Cortéz", "José Manuel Delicado"]
|
||||||
authorEmail = "manuel@manuelcortez.net"
|
authorEmail = "manuel@manuelcortez.net"
|
||||||
copyright = "Copyright (C) 2013-2023, MCV Software."
|
copyright = "Copyright (C) 2013-2023, MCV Software."
|
||||||
|
@ -13,11 +13,8 @@ def do_update(endpoint=application.update_url):
|
|||||||
return False
|
return False
|
||||||
try:
|
try:
|
||||||
result = update.perform_update(endpoint=endpoint, current_version=application.version, app_name=application.name, update_available_callback=available_update_dialog, progress_callback=progress_callback, update_complete_callback=update_finished)
|
result = update.perform_update(endpoint=endpoint, current_version=application.version, app_name=application.name, update_available_callback=available_update_dialog, progress_callback=progress_callback, update_complete_callback=update_finished)
|
||||||
|
return result
|
||||||
except:
|
except:
|
||||||
if endpoint == application.update_url:
|
logger.exception("Update failed.")
|
||||||
logger.error("Update failed! Using mirror URL...")
|
output.speak("An exception occurred while attempting to update " + application.name + ". If this message persists, contact the " + application.name + " developers. More information about the exception has been written to the error log.",True)
|
||||||
return do_update(endpoint=application.mirror_update_url)
|
return None
|
||||||
else:
|
|
||||||
logger.exception("Update failed.")
|
|
||||||
output.speak("An exception occurred while attempting to update " + application.name + ". If this message persists, contact the " + application.name + " developers. More information about the exception has been written to the error log.",True)
|
|
||||||
return result
|
|
||||||
|
Loading…
Reference in New Issue
Block a user