summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2023-08-13 21:05:35 -0400
committermorpheus65535 <[email protected]>2023-08-13 21:05:35 -0400
commit5f509cd0a0ac970362953d92c2af376e2adfffc7 (patch)
treed9a39b10208a52888e88cd6325f65e3980ea44e4
parentcce1be4d0e020ae6eb46bf3802bccaf457e093e7 (diff)
downloadbazarr-5f509cd0a0ac970362953d92c2af376e2adfffc7.tar.gz
bazarr-5f509cd0a0ac970362953d92c2af376e2adfffc7.zip
Fixed bug introduced in v1.2.1 with analytics settings not being taken into account.v1.2.5-beta.13
-rw-r--r--bazarr/utilities/analytics.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bazarr/utilities/analytics.py b/bazarr/utilities/analytics.py
index c09f775a4..948f0fcca 100644
--- a/bazarr/utilities/analytics.py
+++ b/bazarr/utilities/analytics.py
@@ -7,6 +7,7 @@ import logging
from ga4mp import GtagMP
from app.get_args import args
+from app.config import settings
from radarr.info import get_radarr_info
from sonarr.info import get_sonarr_info
@@ -47,6 +48,9 @@ class EventTracker:
self.tracker.store.save()
def track(self, provider, action, language):
+ if not settings.analytics.getboolean('enabled'):
+ return
+
subtitles_event = self.tracker.create_new_event(name="subtitles")
subtitles_event.set_event_param(name="subtitles_provider", value=provider)