diff --git a/media/trakt.py b/media/trakt.py index 90dbc00..ca73011 100644 --- a/media/trakt.py +++ b/media/trakt.py @@ -84,7 +84,10 @@ class Trakt: for item in resp_json: if item not in processed: - processed.append(item) + if object_name.rstrip('s') not in item and 'title' in item: + processed.append({object_name.rstrip('s'): item}) + else: + processed.append(item) # check if we have fetched the last page, break if so if total_pages == 0: