From 4da97428bc1d08ee465a7db6dbf83d20d40204f0 Mon Sep 17 00:00:00 2001 From: panni Date: Wed, 3 Apr 2019 15:56:34 +0200 Subject: [PATCH] init: set SZ_USER_AGENT to Bazarr/1 --- bazarr/init.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bazarr/init.py b/bazarr/init.py index fafb137c1..eb3af0ce3 100644 --- a/bazarr/init.py +++ b/bazarr/init.py @@ -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