From b7ef1329ceff1fa32b7f49aa998e21be120a567e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Mon, 28 Oct 2019 16:16:33 -0400 Subject: [PATCH] Fix for BAZARR_VERSION issue. --- bazarr/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bazarr/main.py b/bazarr/main.py index 1aed88a77..0e2414cda 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -2,6 +2,10 @@ bazarr_version = '0.8.3' +import os +os.environ["SZ_USER_AGENT"] = "Bazarr/1" +os.environ["BAZARR_VERSION"] = bazarr_version + import gc import sys import libs @@ -59,9 +63,6 @@ reload(sys) sys.setdefaultencoding('utf8') gc.enable() -os.environ["SZ_USER_AGENT"] = "Bazarr/1" -os.environ["BAZARR_VERSION"] = bazarr_version - # Check and install update on startup when running on Windows from installer if args.release_update: check_and_apply_update()