1
0
Fork 0
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:
Louis Vézina 2019-10-31 19:38:14 -04:00
parent f825917c9d
commit c4ca5ab533

View file

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