Kodi Community Forum

Full Version: Which entity (of GetSearchResults) gets imported?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When GetSearchResults returns a list of >1 entities, how does Kodi select the entity to import data for?
And how is that behaviour controlled?

The returned list of my scraper looks OK if the scraper is run in ScraperEdit, giving good matches for the filename in the first items. But in Kodi the data of some irrelevant entity from the bottom of the list get imported, ie, giving the wrong movie data even if the top 1 or 2 entities would be the correct movie. Both in Gotham and Helix.

It would be fine for almost all cases if just the first returned entity (assuming it is indeed the top one in ScraperEdit returns) were imported.

Puzzling... Thanks for help!
y
return <results sorted="yes"> to keep order. if not they are ordered according to a fuzzy string matching algorithm (scored relevant to the search term) weighted with the year if available.
(2015-02-18, 14:20)ironic_monkey Wrote: [ -> ]return <results sorted="yes"> to keep order. if not they are ordered according to a fuzzy string matching algorithm (scored relevant to the search term) weighted with the year if available.

Thank you! Works fine. One step more done. :-)

y