reggi 415 Posted August 6, 2021 Posted August 6, 2021 (edited) Hi, So I'm trying to implement an incremental sync and I saw that MinDateLastSaved was avaliable in the ItemService API. Sounds great! But for some reason I can't get Emby to work with the date I'm passing in the API. My API call: https://xxx.xxx.xxx.xxx:xxxx/Items?ExcludeLocationTypes=Virtual&ParentId=f137a2dd21bbc1b99aa5c0f6bf02a805&Limit=0&recursive=True&IncludeItemTypes=Movie&MinDateLastSaved=2021-01-01T00:00:00 And then I get the following result { "Items": [], "TotalRecordCount": 1254 } For this call I only need to fetch the total movie count saved after 01-01-2021 so it's normal that the Items array is empty. But the 1254 total records is in fact my total amount instead of the amount saved after 01-01-2021. Did I miss something here or is there a better way to do this? In the end I also need the movies themself but I set the limit=0 for now so I don't return 1254 movies every time I'm testing. I enabled Debug logging but nothing seems to be wrong on Emby. (Check last 3 lines for succesfull call) Thanks in advace! emby-log.txt Edited August 6, 2021 by reggi Added debug log info
Luke 42077 Posted August 6, 2021 Posted August 6, 2021 It could be the format of the date. Make sure it's in iso utc format. 1
reggi 415 Posted August 6, 2021 Author Posted August 6, 2021 My god, it seems that all my movies are saved for some reason 5 days ago. So when I use 2021-08-04 I only get 4 movies which makes sense. Thanks for the reply! 1
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