init: set SZ_USER_AGENT to Bazarr/1

This commit is contained in:
panni 2019-04-03 15:56:34 +02:00
parent c11ba2c76d
commit 4da97428bc
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,9 @@ from config import settings
from check_update import check_releases
from get_args import args
# set subliminal_patch user agent
os.environ["SZ_USER_AGENT"] = "Bazarr/1"
# Check if args.config_dir exist
if not os.path.exists(args.config_dir):
# Create config_dir directory tree