pull/684/head v0.8.3.3
Louis Vézina 5 years ago
parent 833fc80e28
commit 2602a0550d

@ -1,6 +1,6 @@
# coding=utf-8 # coding=utf-8
bazarr_version = '0.8.3.2' bazarr_version = '0.8.3.3'
import os import os
os.environ["SZ_USER_AGENT"] = "Bazarr/1" os.environ["SZ_USER_AGENT"] = "Bazarr/1"
@ -190,6 +190,7 @@ def shutdown():
else: else:
stop_file.write('') stop_file.write('')
stop_file.close() stop_file.close()
sys.exit(0)
@route(base_url + 'restart') @route(base_url + 'restart')
@ -208,6 +209,7 @@ def restart():
logging.info('Bazarr is being restarted...') logging.info('Bazarr is being restarted...')
restart_file.write('') restart_file.write('')
restart_file.close() restart_file.close()
sys.exit(0)
@route(base_url + 'wizard') @route(base_url + 'wizard')

@ -276,11 +276,11 @@
$('#loader_text').text("Bazarr is restarting. Please Wait..."); $('#loader_text').text("Bazarr is restarting. Please Wait...");
$.ajax({ $.ajax({
url: "{{base_url}}restart", url: "{{base_url}}restart",
async: true async: true,
error: (function(){
setTimeout(function(){ setInterval(ping, 2000); },8000);
})
}) })
.done(function(){
setTimeout(function(){ setInterval(ping, 2000); },8000);
});
}); });
% from config import settings % from config import settings

@ -419,12 +419,12 @@
$('#restart').on('click', function(){ $('#restart').on('click', function(){
$('#loader_text').text("Bazarr is restarting, please wait..."); $('#loader_text').text("Bazarr is restarting, please wait...");
$.ajax({ $.ajax({
url: "{{base_url}}restart", url: "{{base_url}}restart",
async: true async: true,
}) error: (function () {
.done(function(){ setTimeout(function () { setInterval(ping, 2000); }, 8000);
setTimeout(function(){ setInterval(ping, 2000); },8000); })
}) });
}); });
% from config import settings % from config import settings

Loading…
Cancel
Save