2013-12-11, 11:35
If you have enough information to populate a list (title, thumbnail and so on) but grabbing the video url requires extra digging this is where you should use setResolvedUrl.
So you populate your list based on initial scrape then when the user clicks a list item (and only then) you point your list item to a function to grab the "resolved" url of the video file and tell xbmc it has been found so it can play the "resolved" url rather than a call back to the plugin.
As previously stated, it saves multiple unnecessary requests by only grabbing the data when the user requests it.
So you populate your list based on initial scrape then when the user clicks a list item (and only then) you point your list item to a function to grab the "resolved" url of the video file and tell xbmc it has been found so it can play the "resolved" url rather than a call back to the plugin.
As previously stated, it saves multiple unnecessary requests by only grabbing the data when the user requests it.