mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 09:12:38 +00:00
WIP
This commit is contained in:
parent
49d81aab35
commit
362691220c
1 changed files with 7 additions and 2 deletions
|
@ -824,10 +824,15 @@ warnings.filterwarnings('ignore', message='Unverified HTTPS request')
|
|||
# Mute Python3 BrokenPipeError
|
||||
warnings.simplefilter("ignore", BrokenPipeError)
|
||||
|
||||
server = CherryPyWSGIServer(host=str(settings.general.ip), port=int(args.port) if args.port else int(settings.general.port))), app)
|
||||
if args.dev:
|
||||
server = app.run(
|
||||
host=str(settings.general.ip), port=(int(args.port) if args.port else int(settings.general.port)))
|
||||
else:
|
||||
server = CherryPyWSGIServer((str(settings.general.ip), (int(args.port) if args.port else int(settings.general.port))), app)
|
||||
try:
|
||||
logging.info('BAZARR is started and waiting for request on http://' + str(settings.general.ip) + ':' + (str(
|
||||
args.port) if args.port else str(settings.general.port)) + str(base_url))
|
||||
if not args.dev:
|
||||
server.start()
|
||||
except KeyboardInterrupt:
|
||||
doShutdown()
|
||||
|
|
Loading…
Reference in a new issue