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:
parent
cce1be4d0e
commit
5f509cd0a0
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue