2014-10-11, 15:58
Hi,
for my addon XBMC File Cleaner I need a way to retrieve any music videos that have resume points stored in the library. I understand XBMC used to not store resume points for these videos in the past, but since the last time I read the JSON-RPC API I noticed GetMusicVideos now supports the resume property. Therefore I drafted the following request, but it gives me an error: "Received value does not match any of the union type definitions."
Could anyone tell me how to filter based on the position field of the resume object? I am also planning to use this for episodes and movies, so even if music videos still do not support resume points I would still like to know how to do this for the other videos.
Thanks in advance!
for my addon XBMC File Cleaner I need a way to retrieve any music videos that have resume points stored in the library. I understand XBMC used to not store resume points for these videos in the past, but since the last time I read the JSON-RPC API I noticed GetMusicVideos now supports the resume property. Therefore I drafted the following request, but it gives me an error: "Received value does not match any of the union type definitions."
Code:
{"jsonrpc":"2.0","method":"VideoLibrary.GetMusicVideos","params":{"properties":["title","thumbnail","resume","artist","album","genre","lastplayed","year","runtime","fanart","file","streamdetails"],"filter":{"and":{"field": "resume.position","operator":"greaterthan","value":0}}},"id":"libMusicVideos"}
Could anyone tell me how to filter based on the position field of the resume object? I am also planning to use this for episodes and movies, so even if music videos still do not support resume points I would still like to know how to do this for the other videos.
Thanks in advance!