Jump to content

Request Movies AND Episodes from "Items/Latest" (not working)


VernoxVernax

Recommended Posts

VernoxVernax

When I request:

/Users/[Id}/Items/Latest?IncludeItemTypes=Episode,Movie

I only get the latest movies from the library but not any episodes.

When I remove "Movie", the whole thing takes a turn and I only get "Series" objects. (I don't mind that it's not actually episodes).

Is this a bug, or am I once again misunderstanding the api documentation, which btw disappeared from my emby dashboard footer. 😕

Link to comment
Share on other sites

Cheesegeezer
1 hour ago, VernoxVernax said:

When I request:

/Users/[Id}/Items/Latest?IncludeItemTypes=Episode,Movie

I only get the latest movies from the library but not any episodes.

When I remove "Movie", the whole thing takes a turn and I only get "Series" objects. (I don't mind that it's not actually episodes).

Is this a bug, or am I once again misunderstanding the api documentation, which btw disappeared from my emby dashboard 

are you running this on the web? Or a script?

if on web, check your console and see if any errors occur.

also i think you need to set recursive to yes in your api call

Link to comment
Share on other sites

VernoxVernax
2 minutes ago, Cheesegeezer said:

are you running this on the web? Or a script?

if on web, check your console and see if any errors occur.

also i think you need to set recursive to yes in your api call

Thank you for the reply.

Debug Server: http/1.1 Response 200 to host11. Time: 45ms. http://emby_remote_ip/emby/Users/b1384883b5904d67817a93c3b8804615/Items/Latest?IncludeItemTypes=Episode,Movie

The recursive options doesn't change anything as well.

Note that "IncludeItemTypes=Series" returns "[]".

Link to comment
Share on other sites

Cheesegeezer
5 minutes ago, VernoxVernax said:

Thank you for the reply.

Debug Server: http/1.1 Response 200 to host11. Time: 45ms. http://emby_remote_ip/emby/Users/b1384883b5904d67817a93c3b8804615/Items/Latest?IncludeItemTypes=Episode,Movie

The recursive options doesn't change anything as well.

Note that "IncludeItemTypes=Series" returns "[]".

Yeah I just been having a play. And agree, it's not returning Episodes at all

I can get series, let me check Iridium code for getting the latest Episodes on that

2 secs

Link to comment
Share on other sites

Cheesegeezer
7 minutes ago, VernoxVernax said:

Thank you for the reply.

Debug Server: http/1.1 Response 200 to host11. Time: 45ms. http://emby_remote_ip/emby/Users/b1384883b5904d67817a93c3b8804615/Items/Latest?IncludeItemTypes=Episode,Movie

The recursive options doesn't change anything as well.

Note that "IncludeItemTypes=Series" returns "[]".

So i'm actually using this as the request in Iridium to get the latest items, this is specific to a root Library.

Base Url

const url = `${serverAddress}/emby/Users/${userId}/${request}&api_key=${authToken}`;

Request

const recentItemsRequest = `Items/Latest?Limit=20&ParentId=${folderId}&Fields=Taglines%2CCommunityRating%2COverview%2CMediaStreams`;

 

Link to comment
Share on other sites

VernoxVernax
10 minutes ago, Cheesegeezer said:

image.thumb.png.9aa1f0cb026e7d4986d744792ed449c1.png

I've just noticed that I can see any latest episodes on web as well.

Anyways, so you're telling me "Latest" did at one point in time include episodes as well, or are you sending multiple request for both movie and series?

Link to comment
Share on other sites

Cheesegeezer
1 minute ago, VernoxVernax said:

I've just noticed that I can see any latest episodes on web as well.

I just checked that also and got the same results. Yes used to have episodes at one point

1 minute ago, VernoxVernax said:

Anyways, so you're telling me "Latest" did at one point in time include episodes as well, or are you sending multiple request for both movie and series?

Actually I stand corrected, it only shows the series, i checked back at some old images and even back then i only got the Series.

But yeah you should just retrieve the latest for each Library, and then you could add them together after that, that API looks like it only returns the first ItemType.

This was from a post back on the June, 26.  so looks like it's always been that way

image.thumb.png.888376080bc50b566b8c713493afee5e.png

  • Like 1
Link to comment
Share on other sites

VernoxVernax
Just now, Cheesegeezer said:

I just checked that also and got the same results. Yes used to have episodes at one point

Actually I stand corrected, it only shows the series, i checked back at some old images and even back then i only got the Series.

But yeah you should just retrieve the latest for each Library, and then you could add them together after that, that API looks like it only returns the first ItemType.

This was from a post back on the June, 26.  so looks like it's always been that way

image.thumb.png.888376080bc50b566b8c713493afee5e.png

Ok, thank you for debugging!!

  • Like 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...