mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-26 09:37:25 +00:00
Fix for #620
This commit is contained in:
parent
73df77984d
commit
b7049c79ce
1 changed files with 2 additions and 1 deletions
|
@ -294,7 +294,8 @@ def request_json(url, **kwargs):
|
|||
def updated(restart=True):
|
||||
if settings.general.getboolean('update_restart') and restart:
|
||||
try:
|
||||
requests.get(bazarr_url + 'restart')
|
||||
from main import restart
|
||||
restart()
|
||||
except requests.ConnectionError:
|
||||
logging.info('BAZARR Restart failed, please restart Bazarr manualy')
|
||||
updated(restart=False)
|
||||
|
|
Loading…
Reference in a new issue