Posts: 4,060
Joined: Mar 2010
Reputation:
94
No, normally reload skin is not required. Maybe pvr stuff is handled in a different way.
Posts: 3,027
Joined: Jan 2013
Reputation:
209
Gade
Team-Kodi Member
Posts: 3,027
Hi Piers.
I just did the exact same thing yesterday (got the idea from the same thread), and encountered the same issue as you.
Do you use the PVR Demo add-on? Maybe it's specific for that add-on and working with regular pvr add-ons. Haven't tested this yet though.
Posts: 489
Joined: Sep 2012
Reputation:
15
If this only happens on kodi start up, I would guess its because kodi has to first load the channel list.
If you start kodi and the channel list does not appear via dyanmic content, its probably because at the moment of trying to load the channel list via the content tag, the pvr channels have not yet been loaded by kodi.
Remember that loading content via dynamic method is quite fast, while loading the pvr channels by kodi takes a bit longer.
Posts: 677
Joined: Sep 2011
Reputation:
14
2015-01-28, 07:57
(This post was last modified: 2015-01-28, 07:59 by senna99.)
Yes this combination works,with Startup.xml. I just tested on Kodi 15.0
--------------Startup.xml--------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<window>
<defaultcontrol always="true">10</defaultcontrol>
<allowoverlay>no</allowoverlay>
<controls>
<control type="button" id="10">
<left>1300</left>
<onfocus condition="!System.GetBool(pvrmanager.enabled) | [System.GetBool(pvrmanager.enabled) + Skin.HasSetting(HidePVRChannelsWidget)]">ReplaceWindow($INFO[System.StartupWindow])</onfocus>
<onfocus condition="System.GetBool(pvrmanager.enabled) + !Skin.HasSetting(HidePVRChannelsWidget)">SetFocus(11)</onfocus>
</control>
<!-- Show home if pvr loading is finished -->
<control type="button" id="11">
<left>1300</left>
<onfocus>SetFocus(11)</onfocus>
<visible>IsEmpty(Videos,pvr://channels/tv/)</visible>
</control>
<control type="button" id="11">
<left>1300</left>
<onfocus>ReplaceWindow($INFO[System.StartupWindow])</onfocus>
<visible>!IsEmpty(Videos,pvr://channels/tv/)</visible>
</control>
</controls>
</window>
---------------end------------------------------------------
---------------includes Home-----------------------------
<control type="list" id="11">
<posx>760</posx>
<posy>0</posy>
<width>685</width>
<height>670</height>
<onleft>405</onleft>
<onright>404</onright>
<onup>926</onup>
<ondown></ondown>
<focuspostion>1</focuspostion>
<orientation>vertical</orientation>
<scrolltime>220</scrolltime>
<itemlayout width="807" height="130">
<control type="label">
<posx>170</posx>
<posy>5</posy>
<width>700</width>
<height>62</height>
<info>ListItem.Label</info>
<font>font13_title</font>
<textcolor>white</textcolor>
<align></align>
</control>
</itemlayout>
<focusedlayout width="807" height="130">
<control type="label">
<posx>170</posx>
<posy>5</posy>
<width>700</width>
<height>62</height>
<info>ListItem.Label</info>
<font>font13_title</font>
<textcolor>white</textcolor>
<align></align>
</control>
</focusedlayout>
<content target="video">pvr://channels/tv/All&channels/</content>
</control>
-------------------------------end--------------------------------------------
Posts: 17,390
Joined: Aug 2007
Reputation:
584
Hitcher
Team-Kodi Member
Posts: 17,390
You might want to add some overridding on action controls to the buttons in case something goes wrong so the user can still load Kodi.
Posts: 677
Joined: Sep 2011
Reputation:
14
I do not understand,but anyway i have a problem with Startup.xml.
Because I use different line in startup including intro mp4,now when I not use startup, dynamic list works perfectly.
I can not put line from Amber startup together in my startup xml.Something is wrong.
This is my original Startup.xml
<window id="2999">
<defaultcontrol always="true">10</defaultcontrol>
<allowoverlay>yes</allowoverlay>
<onload condition="Window.Previous(29) + Skin.SetString(signin,3030)">Skin.SetString(signin,3030)</onload>
<onload condition="!Window.Previous(29) + !Skin.SetString(signin,3030)">Skin.SetString(signin,3030)</onload>
<controls>
<include>Common_Busy</include>
<control type="button" id="10">
<onfocus>ReplaceWindow(Home)</onfocus>
<onfocus condition="IsEmpty(Skin.String(GamerPicture))">Skin.SetString(GamerPicture,special://skin/system/D400040/gamertag/pictures/Master user.png)</onfocus>
<onfocus condition="IsEmpty(Skin.String(GamerColor))">Skin.SetString(GamerColor,special://skin/system/D400040/colors/Bland 50%/black.png)</onfocus>
<onfocus condition="IsEmpty(Skin.String(GamerTheme))">Skin.SetString(GamerTheme,special://skin/system/0200020/start.jpg)</onfocus>
</control>
</controls>
<onload>Skin.SetString(snapxp,1117)</onload>
<onload>Skin.SetString(music,3033)</onload>
<onload>Skin.SetString(video,3033)</onload>
<onload>Skin.SetString(Xbox One First Start,101)</onload>
<onload>PlayMedia(special://skin/system/0100010/boot.mp4,0,)</onload>
<onload>special://skin/system/0300030/xbox1.py</onload>
<onload>special://skin/system/0300030/xbox2.py</onload>
<onload>special://skin/system/0300030/xbox3.py</onload>
<onload>special://skin/system/0300030/xbox4.py</onload>
<onload>special://skin/system/0300030/bing.py</onload>
<onload>special://skin/system/D400040/gamertag/pictures/$INFO[System.ProfileName].png</onload>
<onunload Condition="!System.InternetState">Notification(Hi[CR]$INFO[System.ProfileName] ,Singed In,00:59,special://skin/system/D400040/gamertag/pictures/$INFO[System.ProfileName].png)</onunload>
</window>