-
Notifications
You must be signed in to change notification settings - Fork 58
Description
Hi everyone!
There seems to be an issue with the dicts that are returned when using .data
method on the one of the objects resulting from the search
function.
For example, the following few lines of code should print the number of items in the dict:
import discogs_client
client = discogs_client.Client(use_agent="USER_AGENT", user_token="USER_TOKEN")
results = client.search("Daft Punk One more time", type="master")
print(len(results[0].data.items()))
print(len(results[1].data.items()))
And the output of this code is:
>>> 34
>>> 19
Oddly, it sometimes happens that all dict items have 19 key-value pairs, including the first one - without even changing the code.
Moreover, when inspecting these 2 dicts, I notice that the last key in the first result is "embed"
while in the second it's "community"
. And even more importantly for my use case, the "artists"
key is missing in the all the results except the first one.
I'm using version 2.6 of the python3-discogs-client
package with dedicated conda environment
using Python 3.8
.
Any help here would be appreciated!
Metadata
Metadata
Assignees
Labels
Type
Projects
Status