Jump to content

Emby api


Go to solution Solved by Angelblue05,

Recommended Posts

Angelblue05
Posted (edited)

@@Luke

 

How do I retrieve season with recursive true using the library id as a parent id? Folders with recursive true are ignored, if the media type is requested, shouldn't that get priority?

 

Right now, with minlastdatesaved, it's impossible to get season folder update. Same thing for boxsets, it seems like.

 

Please advise.

Edited by Angelblue05
Posted

Hi, sorry, can you explain more what you're trying to do? Are you trying to get a list of seasons from a TV library?

  • Like 1
Angelblue05
Posted

Hi, sorry, can you explain more what you're trying to do? Are you trying to get a list of seasons from a TV library?

Thank you for your reply.

 

I’m trying to fix the start up update with emby for kodi. I’ve been told season and boxsets don’t get updated at startup.

 

I can’t figure out how to get them to return alongside movies, tvshows, episodes, music videos... when I make the call to get mindatelastsaved, I set recursive true to get episodes etc, but then even if I declare Season in the mediatype I wanted returned, because of recursive=true it is ignored.

 

I don’t want to do several calls using the tvshow as parentid just to get the updated season folders.

 

I’m not sure how to get the season and boxset that were updated, using mindatelastsaved...

Posted

Try season with IncludeItemTypes rather than MediaTypes.

  • Like 1
Angelblue05
Posted (edited)

Try season with IncludeItemTypes rather than MediaTypes.

IncludeItemTypes is the one I was using and that’s a no go. I’ve just retested to make sure. With recursive true, looks like it’s set to take the folder and drill down further, ignoring that the season is requested in the results. Edited by Angelblue05
Posted

Can you give an example url? Thanks.

  • Like 1
Angelblue05
Posted (edited)

Can you give an example url? Thanks.

{
                                                "url": "http://{emby-server}/emby/Users/deb0746b55924969b59e7f1628d63933/Items",  
                                                "params": {
                                                    "IncludeItemTypes": "Series,Episode,BoxSet,Movie,MusicVideo,MusicArtist,MusicAlbum,Audio", 
                                                    "Recursive": true, 
                                                    "LocationTypes": "FileSystem,Remote,Offline", 
                                                    "Fields": "Path,Genres,SortName,Studios,Writer,Taglines,LocalTrailerCount,Video3DFormat,OfficialRating,CumulativeRunTimeTicks,ItemCounts,PremiereDate,ProductionYear,Metascore,AirTime,DateCreated,People,Overview,CommunityRating,StartDate,CriticRating,CriticRatingSummary,Etag,ShortOverview,ProductionLocations,Tags,ProviderIds,ParentId,RemoteTrailers,SpecialEpisodeNumbers,Status,EndDate,MediaSources,VoteCount,RecursiveItemCount,PrimaryImageAspectRatio,DisplayOrder,PresentationUniqueKey,OriginalTitle", 
                                                    "CollapseBoxSetItems": false, 
                                                    "Limit": 1, 
                                                    "IsMissing": false, 
                                                    "MinDateLastSavedForUser": "2019-11-14T02:59:19z", 
                                                    "SortOrder": "Ascending", 
                                                    "ParentId": "7e64e319657a9516ec78490da03edccb", 
                                                    "EnableTotalRecordCount": true, 
                                                    "IsVirtualUnaired": false, 
                                                    "SortBy": "SortName"
                                                }
                                            }

This returns no results even if I updated a season folder with a new image.

Edited by Angelblue05
Posted

If you remove the MinDateLastSavedForUser param, do you get a result?

Posted

Ok I see, you have Series in IncludeItemTypes, but not Season. I would add Season into there.

  • Like 1
  • Solution
Angelblue05
Posted

Ok I see, you have Series in IncludeItemTypes, but not Season. I would add Season into there.

Thank you so much, that was it. *hides in shame* It must have dropped at some point somehow and I didn't realize it.

  • Like 1

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