|
|
@ -294,7 +294,8 @@ def request_json(url, **kwargs):
|
|
|
|
def updated(restart=True):
|
|
|
|
def updated(restart=True):
|
|
|
|
if settings.general.getboolean('update_restart') and restart:
|
|
|
|
if settings.general.getboolean('update_restart') and restart:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
requests.get(bazarr_url + 'restart')
|
|
|
|
from main import restart
|
|
|
|
|
|
|
|
restart()
|
|
|
|
except requests.ConnectionError:
|
|
|
|
except requests.ConnectionError:
|
|
|
|
logging.info('BAZARR Restart failed, please restart Bazarr manualy')
|
|
|
|
logging.info('BAZARR Restart failed, please restart Bazarr manualy')
|
|
|
|
updated(restart=False)
|
|
|
|
updated(restart=False)
|
|
|
|