Kodi Community Forum

Full Version: filter GetEpisodes for uniqueid
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

this is the request i have:

Code:
{"jsonrpc":"2.0","method":"VideoLibrary.GetEpisodes","params":{"properties":["uniqueid"]},"id":"libEpisodes"}

which returns for example:
Code:
{
    "episodeid": 22388,
    "label": "S03. The Lost Episode: Extreme Metal",
    "uniqueid": {
        "unknown": "4856016"
    }
},

now I am trying to filter this by the uniqueid (which is the tvdbid), but I can not manage to get this to work...

the goal is to search for a tvdbid and get the corresponding episodeid (if in the library, of course)

maybe someone can help me here?
thank you!
That functionality is currently not part of the JSON-RPC API so you'd have to do it yourself by retrieving all episodes and then going through them looking for the uniqueid you want.
too bad... i was trying to avoid transferring the whole db each time i search.

but thank you anyways!