Posts: 1,432
Joined: May 2004
Reputation:
73
BlueCop
Skilled Python Coder
Posts: 1,432
I would like to second this question. I only set the path for the list item when returning with resolveurl. I always used the addDirectoryItem with a URL for a list items to play directly or for plugin parameters in the case it is a folder. I am not sure if I doing it right though.
Posts: 1,432
Joined: May 2004
Reputation:
73
BlueCop
Skilled Python Coder
Posts: 1,432
Isn't setting it in the list item the only way when using setResolvedUrl?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
yes it is. the url param in addDirectoryItem is what really shouldn't be there.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Also, setResolvedUrl should take a string rather than a listitem - currently we actually do use everything in the listitem, but it's silly to do so as it overrides any information that you've already done.
Silly, silly API. I'll look at fixing this after Dharma.
Posts: 1,432
Joined: May 2004
Reputation:
73
BlueCop
Skilled Python Coder
Posts: 1,432
jmarshall: It does but I found this functionality useful in one case for a random episode item in one plugin. it will get the actual meta data for the random episode chosen for display while playing.
otherwise I completely agree. I just wanted to put a vote in for having the option of resetting the information.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Right - that's I guess a valid enough instance, though it's a little obscure. The main problem would be whether it's a simple matter of replacing the entire item or something more complicated like supplementing it.