Kodi Community Forum
Multiple Links Help. - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Multiple Links Help. (/showthread.php?tid=279788)



Multiple Links Help. - Manolavelle - 2016-06-14

I'm trying to create an addon but i have multiple links for the same video/channel etc and i would like to add a dialog box that opens and allows you to choose which link you want. This is an example:


<item>
<title>Name</title>
<link>http://link1.m3u8</link>
<link>http://link2.m3u8</link>
<thumbnail>https://thumbnail.com</thumbnail>
</item>


Thanks for any help.


RE: Multiple Links Help. - Torben - 2016-06-15

I would probably be like make listitems that have the links. Have two buttons per listitem.. oh wait. I dont think that is possible. Strike that perhaps..

Thwn I would be like.. make two listitems instead of one? Or make two lists and syncronize them somehow.

Or, because that is a bad hack.. attempt to make a single listitem have a double action. Could be you need not a panel with content, but some hackish structure with a group or more buttons in each focusitem? Trial and error or wait for a pro.

When you think that is also too clumsy, maybe find a way to get the position of the mouseclick.. oh.. probably just me that is using a mouse only setup.


Well.. I do apologize and wish you luck. :-)