From bee1f03b0a6a7c762936b8d8430d3e72f2a3160f Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 30 Nov 2021 11:10:47 -0500 Subject: [PATCH] tautulli fix --- modules/tautulli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tautulli.py b/modules/tautulli.py index 0079304c..177d54b1 100644 --- a/modules/tautulli.py +++ b/modules/tautulli.py @@ -29,7 +29,7 @@ class Tautulli: logger.info(f"Processing Tautulli Most {params['list_type'].capitalize()}: {params['list_size']} {'Movies' if library.is_movie else 'Shows'}") response = self._request(f"{self.url}/api/v2?apikey={self.apikey}&cmd=get_home_stats&time_range={params['list_days']}&stats_count={query_size}") stat_id = f"{'popular' if params['list_type'] == 'popular' else 'top'}_{'movies' if library.is_movie else 'tv'}" - stat_type = "total_plays" if params['list_type'] == 'popular' else "users_watched" + stat_type = "users_watched" if params['list_type'] == 'popular' else "total_plays" items = None for entry in response["response"]["data"]: