Fix search languages for analytics.

pull/684/head
Louis Vézina 5 years ago
parent f825917c9d
commit c4ca5ab533

@ -178,7 +178,7 @@ def download_subtitle(path, language, hi, forced, providers, providers_auth, sce
post_download_hook=None, # fixme post_download_hook=None, # fixme
language_hook=None) # fixme language_hook=None) # fixme
for provider in providers: 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: else:
downloaded_subtitles = None downloaded_subtitles = None
logging.info("BAZARR All providers are throttled") 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, throttle_callback=provider_throttle,
language_hook=None) # fixme language_hook=None) # fixme
for provider in providers: 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: else:
subtitles = [] subtitles = []
logging.info("BAZARR All providers are throttled") logging.info("BAZARR All providers are throttled")

Loading…
Cancel
Save