AntaresFR 8 Posted June 5, 2020 Share Posted June 5, 2020 Hi, Could it be possible to retrieve some others fields from the /Users/{UserId}/Items ? It could be nice to get DateModified, TotalBitrate and Size Regards Link to comment Share on other sites More sharing options...
Luke 36879 Posted June 6, 2020 Share Posted June 6, 2020 Hi, yes you can by requesting additional fields. 1 Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted June 6, 2020 Author Share Posted June 6, 2020 (edited) I did'nt see this in swagger ! I have to recheck I can see : "Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimeted. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines" But i don't see DateModified, TotalBitrate and Size i those options ! I tried to add them in my query without success. Regards Edited June 6, 2020 by AntaresFR Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted June 6, 2020 Share Posted June 6, 2020 If you add MediaSources to the Fields property it contains Bitrate and Size Note using MediaStreams will add Mediasources anyway and you end up with Media Streams data being included twice I cant get DateModified to be returned - so thats something Luke would have to look at Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted June 6, 2020 Author Share Posted June 6, 2020 yes i know for the MediaSources, that's already what i do but i asked if possible to add those fields directly to get a lighter json. We can already get Width and Height, and those 3 fields I asked for are stored in the mediaitems table so it should be possible Regards Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted June 6, 2020 Share Posted June 6, 2020 (edited) what gets returned (or not) is down to how emby works and uses the data or what it needs to be returned to clients not all fields in the database table(s) are available to be pulled via the api by name as you have found Edited June 6, 2020 by PenkethBoy Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted June 7, 2020 Author Share Posted June 7, 2020 Agreed, that's why i asked for an evolution Link to comment Share on other sites More sharing options...
ebr 14851 Posted June 7, 2020 Share Posted June 7, 2020 Hi. The properties you are asking for are related to the specific media source, not the item. That is - there could be multiple values for any individual item. Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted June 10, 2020 Author Share Posted June 10, 2020 Yes, but it is also the case for the Width propertie no ? But the width propertie can be retrieve without adding media source in the field list of the query. Link to comment Share on other sites More sharing options...
ebr 14851 Posted June 10, 2020 Share Posted June 10, 2020 Yes, but it is also the case for the Width propertie no ? But the width propertie can be retrieve without adding media source in the field list of the query. That's just because it was there before we had multiple media sources. Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted June 10, 2020 Author Share Posted June 10, 2020 (edited) OK thanks for the reply Maybe the DateModified could be an interesting thing to add anyway Other fields are media source relative, but the DateMotified could be nice to get everything in this sorting way ! Edited June 10, 2020 by AntaresFR Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now