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,6 +84,9 @@ class Trakt:
for item in resp_json: for item in resp_json:
if item not in processed: if item not in processed:
if object_name.rstrip('s') not in item and 'title' in item:
processed.append({object_name.rstrip('s'): item})
else:
processed.append(item) 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

Loading…
Cancel
Save