Jump to content

Get Latest Added files Primary Images


killride

Recommended Posts

killride

Hi Guys,

 

I try to figure it out how to get latest added files primary images to make a nice website announcing the recently added files.

 

Do you know the API call for this?

 

I try emby/items/latest but doesn't work.

 

Thanks

@@chef

@@PenkethBoy

Link to comment
Share on other sites

PenkethBoy

latest endpoint works fine

 

....."/emby/users/" + $User.User.Id + "/items/latest?limit=10&EnableImageTypes=Primary&ParentId=" + <library parent id> + "&api_key=" + $User.AccessToken

 

give us something to work with

 

show us what you tried and what the result was

 

my crystal ball is not working today

Link to comment
Share on other sites

killride

Hi @@PenkethBoy,

 

  • "Name":"Strike Back",
  • "ServerId":"xxxx",
  • "Id":"8822",
  • "RunTimeTicks":27000000512,
  • "IsFolder":true,
  • "Type":"Series",
  • "UserData":{
    • "UnplayedItemCount":71,
    • "PlaybackPositionTicks":0,
    • "PlayCount":0,
    • "IsFavorite":false,
    • "Played":false
    },
  • "Status":"Continuing",
  • "AirDays":[ ],
  • "ImageTags":{
    • "Primary":"b73777a51b75f00b2bc72c352feaaf0f"
    }

},

 

Here is what I get. and now I would like to get the Primary image. I tried emby/users/xxxx/Items/8822/Images but It doesn't work.

 

I would like to see the png image do add to a website.

Edited by killride
Link to comment
Share on other sites

The primary image tag is right there in the json. Now you need to properly use our images api in order to download an image if that's what you want to do.

Link to comment
Share on other sites

killride

@Luke 

 

How to use the Image API? some documentation around?

 

EDIT:

 

My bad, we have to remove the user ID on the call.

 

xxxx

 

Works like charm

Edited by killride
Link to comment
Share on other sites

  • 3 weeks later...
PenkethBoy

thats the emby database id for the item

 

if you use the web app and go to the detail screem of say a movie and look in the url of the browser you can see the ID - if its for a one off query

 

or use the api to pull back say all your movies and each item will have an ID - which can then be used to query individual items for more info etc etc

Link to comment
Share on other sites

mpg732

thats the emby database id for the item

 

if you use the web app and go to the detail screem of say a movie and look in the url of the browser you can see the ID - if its for a one off query

 

or use the api to pull back say all your movies and each item will have an ID - which can then be used to query individual items for more info etc etc

Thats what I am asking.  I am looking through the data in a web browser and nor seeing an ID, I do see URl's for IMB and so forth but those ID's are not working.  I also see,

     "ImageTags": {

        "Primary": "5d29cdaf189631ae8cd7feff1b15ac89",

        "Logo": "a13976cdf35f2ae407a75d829da3fefc",

        "Thumb": "4c61b8c16e769a62304ff9cd6fa3cea1"

how ever they do not seem to be working.

 

Never Mind, I found it.

Thanks

Edited by mpg732
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...