sualfred / script.embuary.helper

Helper script for Embuary Kodi skin
17 stars 13 forks source link

[REQ] New combined widget #42

Closed roidy closed 4 years ago

roidy commented 4 years ago

I have a request, would it be possible to get a new widget that combines,

In progress movies plugin://script.embuary.helper/?info=getinprogress&type=movie

and

Next up episode plugin://script.embuary.helper/?info=getnextup

into one widget?

Thanks

sualfred commented 4 years ago

In theory yes, but it cannot be sorted by last played, because the upcoming episode has no lastplayed value. So it would be always listed at the end of the list. And because of this you could also use a doubled <content> defintion. That would be the same.

roidy commented 4 years ago

So it would be always listed at the end of the list

Yes, that's exactly what I need. Basically the content of both of the above widgets combined into a single widget without any extra sorting except what they already have.

So the list would basically contain:-

In progress movie 1 In progress movie 2 ....................................... In progress movie x Next up episode 1 Next up episode 2 ...................................... Next up episode x

Or to put it another way concatenate plugin://script.embuary.helper/?info=getinprogress&type=movie and plugin://script.embuary.helper/?info=getnextup

sualfred commented 4 years ago

Since Leia you can define multiple contents for a widget. Just use:

<control type="list">
....
bla
...
<content>plugin://script.embuary.helper/?info=getinprogress&type=movie</content>
<content>plugin://script.embuary.helper/?info=getnextup</content>
</control>
roidy commented 4 years ago

Really!!! That's fantastic, I had no idea you could do that. That makes it much easier, big thanks 👍

sualfred commented 4 years ago

For reference https://forum.kodi.tv/showthread.php?tid=298565&pid=2578642#pid2578642