diff --git a/medusa/server/api/v2/history.py b/medusa/server/api/v2/history.py index 0ea61e80f5..f504d88474 100644 --- a/medusa/server/api/v2/history.py +++ b/medusa/server/api/v2/history.py @@ -139,8 +139,8 @@ def get(self, series_slug, path_param): for item in results: if item.get('showid') and item.get('season') and item.get('episode') and item.get('indexer_id'): item['showslug'] = f"{indexer_id_to_name(item['indexer_id'])}{item['showid']}" - my_key = f"{item['showslug']}S{item['season']}E{item['episode']}" - res.setdefault(my_key, []).append(item) + group_by_key = f"{item['showslug']}S{item['season']}E{item['episode']}Q{item['quality']}" + res.setdefault(group_by_key, []).append(item) results = res headers['X-Pagination-Count'] = len(results)