mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-27 01:57:33 +00:00
Fix search languages for analytics.
This commit is contained in:
parent
f825917c9d
commit
c4ca5ab533
1 changed files with 2 additions and 2 deletions
|
@ -178,7 +178,7 @@ def download_subtitle(path, language, hi, forced, providers, providers_auth, sce
|
|||
post_download_hook=None, # fixme
|
||||
language_hook=None) # fixme
|
||||
for provider in providers:
|
||||
track_event(category=provider, action='search', label=language[0])
|
||||
track_event(category=provider, action='search', label=language_from_alpha3(language[0]))
|
||||
else:
|
||||
downloaded_subtitles = None
|
||||
logging.info("BAZARR All providers are throttled")
|
||||
|
@ -336,7 +336,7 @@ def manual_search(path, language, hi, forced, providers, providers_auth, sceneNa
|
|||
throttle_callback=provider_throttle,
|
||||
language_hook=None) # fixme
|
||||
for provider in providers:
|
||||
track_event(category=provider, action='search', label=language[0])
|
||||
track_event(category=provider, action='search', label=language_from_alpha3(language[0]))
|
||||
else:
|
||||
subtitles = []
|
||||
logging.info("BAZARR All providers are throttled")
|
||||
|
|
Loading…
Reference in a new issue