morpheus65535 3 Posted March 24, 2016 Share Posted March 24, 2016 (edited) Hey, First, thank you for the great piece of software you made up. I found it very useful to replace my old Kodi/MySQL setup. I can't find a way to get, trough the HTTP API, the 20 latest episodes (both played and unplayed). This is what I'm using to get the information I need: ../Items/Latest?IncludeItemTypes=Episode&Limit=20&GroupItems=false&Fields=ProviderIds,SeriesName,Name&format=json I understand that using IsPlayed with TRUE or FALSE, I can get one or the other but I would really like to get it to work as expected. Thank you very much for your time! Edited March 24, 2016 by morpheus65535 Link to comment Share on other sites More sharing options...
speechles 1929 Posted March 24, 2016 Share Posted March 24, 2016 .../Items?IncludeItemTypes=Episode&Recursive=True&ExcludeLocationTypes=Virtual&Limit=20&GroupItems=false&Fields=ProviderIds,SeriesName,Namesortby&SortBy=DateCreated&SortOrder=Descending&format=json 1 Link to comment Share on other sites More sharing options...
morpheus65535 3 Posted March 24, 2016 Author Share Posted March 24, 2016 .../Items?IncludeItemTypes=Episode&Recursive=True&ExcludeLocationTypes=Virtual&Limit=20&GroupItems=false&Fields=ProviderIds,SeriesName,Namesortby&SortBy=DateCreated&SortOrder=Descending&format=json Works perfectly! Thank you! Wouldn't it be great to have this with "Latest" if we don'T supply IsPlayed? Link to comment Share on other sites More sharing options...
ebr 14960 Posted March 24, 2016 Share Posted March 24, 2016 The "Latest" end point follows the user settings for whether or not to include watched content. It also follows the user settings to ignore certain libraries. Link to comment Share on other sites More sharing options...
morpheus65535 3 Posted March 25, 2016 Author Share Posted March 25, 2016 The "Latest" end point follows the user settings for whether or not to include watched content. It also follows the user settings to ignore certain libraries. I've just tested it and I confirm that it works when I untick "hide viewed item" in the user preferences. Thank you for your support! 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