fix popular lists.

issue was they are not returned in their own subdict, e.g. {'movie': { ITEM }}
pull/28/head
James 7 years ago
parent e39daaaad8
commit 3f0f9a324a

@ -84,7 +84,10 @@ class Trakt:
for item in resp_json: for item in resp_json:
if item not in processed: 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 # check if we have fetched the last page, break if so
if total_pages == 0: if total_pages == 0:

Loading…
Cancel
Save