2016-01-18, 15:04
(2016-01-18, 00:57)sualfred Wrote:(2016-01-17, 22:43)ronie Wrote: yeah it's something worth exploring.
perhaps is should start with checking if it's possible to merge all the MyPVR**.xml files.
iirc, does this mean to return to pre-Helix? Where it was just a MyPVR.xml with different view types? (I hope I got it wrong).
i only had a very brief look at the core code last night. as far as kodi is concerned, those xml files are 100% identical so likely very easy to merge.
(with the exception of MyPVRGuide.xml which requires the hardcoded id's 10, 11, 12)
before helix we only had a single pvr window (MyTV) with a hardcoded id for each container.
currently we have multiple pvr windows (TVChannels, RadioChannels, TVRecordings, etc..) and that won't change.
in case of a merge, your MyPVR.xml could look like this:
Code:
<window>
<defaultcontrol>50</defaultcontrol>
<views>50</views>
<controls>
<include condition="Window.IsVisible(TVChannels) | Window.IsVisible(RadioChannels)">ChannelsView</include>
<include condition="Window.IsVisible(TVRecordings) | Window.IsVisible(RadioRecordings)">RecordingsView</include>
...
</controls>
</window>
i agree we should only go ahead with it if saves skinners the hassle of coding the same (or very similar) pvr window xml file 4 or 5 times.
it should indeed not result in a very cluttered / unreadable xml code.
at this point, i'm just throwing out ideas and nothing is set in stone ;-)
if the consensus is, it's not a good idea in this case, it won't happen.