diff --git a/trakt/sync.py b/trakt/sync.py index 443c9a44..cfc1fc5e 100644 --- a/trakt/sync.py +++ b/trakt/sync.py @@ -368,8 +368,16 @@ def get_playback(list_type=None, start_at=None, end_at=None): if list_type: uri += f"/{list_type}" - data = yield uri - results = data + items = yield uri + results = [] + for item in items: + if "type" not in item: + continue + data = item.pop(item["type"]) + if "show" in item: + data["show"] = item.pop("show") + results.append(PlaybackEntry(**item, data=data)) + yield results