mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-24 06:37:16 -04:00
Added searches to analytics data.
This commit is contained in:
parent
c933481d9a
commit
e80387e150
1 changed files with 4 additions and 0 deletions
|
@ -177,6 +177,8 @@ def download_subtitle(path, language, hi, forced, providers, providers_auth, sce
|
|||
pre_download_hook=None, # fixme
|
||||
post_download_hook=None, # fixme
|
||||
language_hook=None) # fixme
|
||||
for provider in providers:
|
||||
track_event(category=provider, action='search', label=language[0])
|
||||
else:
|
||||
downloaded_subtitles = None
|
||||
logging.info("BAZARR All providers are throttled")
|
||||
|
@ -333,6 +335,8 @@ def manual_search(path, language, hi, forced, providers, providers_auth, sceneNa
|
|||
provider_configs=providers_auth,
|
||||
throttle_callback=provider_throttle,
|
||||
language_hook=None) # fixme
|
||||
for provider in providers:
|
||||
track_event(category=provider, action='search', label=language[0])
|
||||
else:
|
||||
subtitles = []
|
||||
logging.info("BAZARR All providers are throttled")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue