1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-02-23 06:21:05 +00:00

Fixed bug introduced in v1.2.1 with analytics settings not being taken into account.

This commit is contained in:
morpheus65535 2023-08-13 21:05:35 -04:00
parent cce1be4d0e
commit 5f509cd0a0

View file

@ -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)