Jump to content

Missing two fields: IndexNumber & ParentIndexNumber


BiTeTHeBiGG
Go to solution Solved by BiTeTHeBiGG,

Recommended Posts

BiTeTHeBiGG

Hi, when I try to curl this URL:

$url = 'http://' . $host . '/emby/Users/' . $userId . '/Items?Limit=' . $limit . '&IsMissing=false&Recursive=true&Fields=ProviderIds&IncludeItemTypes=Movie,Episode&Filters=IsNotFolder&EnableImages=false&EnableUserData=true&api_key=' . $api_key;

Then the fields IndexNumber & ParentIndexNumber are not in the response.

When I add this parameter in the URL "IsPlayed=true" I get the fields, but in response are only watched items.

What I'm trying to get is also the informiation for unwatched items.

Am I doing something wrong or need to use another endpoint to get all the datas?

Best regards

Edited by BiTeTHeBiGG
typos
Link to comment
Share on other sites

  • Solution
BiTeTHeBiGG

I noticed that the parameter "&Filters=IsNotFolder" is the culprit. When I omit this then it is working. When I'm not wrong then the attribute can be replaced with "&IsFolder=false".

Link to comment
Share on other sites

HI, generally speaking, don't use filter params that you don't need. You're already filtering by type, so the IsFolder param is not necessary. Thanks.

Link to comment
Share on other sites

BiTeTHeBiGG

Hi Luke,

Yes, I agree. You are toally right.

Thank you

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...