Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all articles
Browse latest Browse all 1816

Request - How to fetch JSON

$
0
0
Hello,

I am playing around with the default skin and wondering how to make dynamic menu.

As of now it looks like this.

<content>
                        <item>
                            <label>Menu1<label>
                            <property name="menu_id">$NUMBER[6000]</property>
                            <thumb>icons/sidemenu/tv.png</thumb>
                            <property name="id">tvshows</property>
                            <visible>!Skin.HasSetting(HomeMenuNoTVShowButton)</visible>
                        </item>
                        <item>
                            <label>Menu2</label>
                            <property name="menu_id">$NUMBER[6000]</property>
                            <thumb>icons/sidemenu/tv.png</thumb>
                            <property name="id">tvshows</property>
                            <visible>!Skin.HasSetting(HomeMenuNoTVShowButton)</visible>
                        </item>
                       
</content>    

Ideally I like to fetch from URL and show item tag as many as received data length. Something like foreach method. Then inside "label" tag "item.name" so that it would converted to string.

How can I do this in Kodi skinning?

Viewing all articles
Browse latest Browse all 1816

Trending Articles