Posts: 30
Joined: Jan 2014
Reputation:
0
Hi there
How to get unique Items from the query?
For VideoLibrary.GetMovies and VideoLibrary.GetRecentlyAddedMovies
I have duplicates I want to get read of...
Thanks
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Are those duplicates also available in your library when browsing through it in XBMC's GUI?
If that's the case you need to do some item comparison. For movies and tvshows you could e.g. compare the title and the year. But JSON-RPC doesn't offer that functionality, you have to write it yourself.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 30
Joined: Jan 2014
Reputation:
0
Yes they appear in the XBMC's GUI.
I came upon this uniqueItem parameter and I wasn't sure how to use it, or even if it was used anywhere...
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Depending on the scraper you have chosen in XBMC the "uniqueItem" property may contain some unique identifier used by the scraper (e.g. a IMDB or TMDB identifier) but it fully depends on the scraper.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.