home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Talk
Installing over development build
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Sebastiii" data-source="post: 1084913" data-attributes="member: 60104"><p>Maybe [USER=121281]@Benoire[/USER] you can add the change in your build <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>[code] // exporting radio channel groups</p><p> if (exportradiogroups)</p><p> {</p><p> XmlNode nodeRadioChannelGroups = xmlDoc.CreateElement("radiochannelgroups");</p><p> IList<RadioChannelGroup> radiochannelgroups = RadioChannelGroup.ListAll();</p><p> foreach (RadioChannelGroup radiogroup in radiochannelgroups)</p><p> {</p><p> XmlNode nodeRadioChannelGroup = xmlDoc.CreateElement("radiochannelgroup");</p><p> AddAttribute(nodeRadioChannelGroup, "GroupName", radiogroup.GroupName);</p><p> AddAttribute(nodeRadioChannelGroup, "SortOrder", radiogroup.SortOrder.ToString());</p><p> XmlNode nodeRadioGroupMap = xmlDoc.CreateElement("mappings");</p><p> IList<RadioGroupMap> maps = radiogroup.ReferringRadioGroupMap();</p><p> foreach (RadioGroupMap map in maps)</p><p> {</p><p> XmlNode nodeMap = xmlDoc.CreateElement("map");</p><p> if (map.ReferencedChannel() != null)</p><p> {</p><p> AddAttribute(nodeMap, "ChannelName", map.ReferencedChannel().DisplayName);</p><p> }</p><p> AddAttribute(nodeMap, "SortOrder", map.SortOrder.ToString());</p><p> nodeRadioGroupMap.AppendChild(nodeMap);</p><p> }</p><p> nodeRadioChannelGroup.AppendChild(nodeRadioGroupMap);</p><p> nodeRadioChannelGroups.AppendChild(nodeRadioChannelGroup);</p><p> }</p><p> rootElement.AppendChild(nodeRadioChannelGroups);</p><p> }[/code]</p></blockquote><p></p>
[QUOTE="Sebastiii, post: 1084913, member: 60104"] Maybe [USER=121281]@Benoire[/USER] you can add the change in your build :) [code] // exporting radio channel groups if (exportradiogroups) { XmlNode nodeRadioChannelGroups = xmlDoc.CreateElement("radiochannelgroups"); IList<RadioChannelGroup> radiochannelgroups = RadioChannelGroup.ListAll(); foreach (RadioChannelGroup radiogroup in radiochannelgroups) { XmlNode nodeRadioChannelGroup = xmlDoc.CreateElement("radiochannelgroup"); AddAttribute(nodeRadioChannelGroup, "GroupName", radiogroup.GroupName); AddAttribute(nodeRadioChannelGroup, "SortOrder", radiogroup.SortOrder.ToString()); XmlNode nodeRadioGroupMap = xmlDoc.CreateElement("mappings"); IList<RadioGroupMap> maps = radiogroup.ReferringRadioGroupMap(); foreach (RadioGroupMap map in maps) { XmlNode nodeMap = xmlDoc.CreateElement("map"); if (map.ReferencedChannel() != null) { AddAttribute(nodeMap, "ChannelName", map.ReferencedChannel().DisplayName); } AddAttribute(nodeMap, "SortOrder", map.SortOrder.ToString()); nodeRadioGroupMap.AppendChild(nodeMap); } nodeRadioChannelGroup.AppendChild(nodeRadioGroupMap); nodeRadioChannelGroups.AppendChild(nodeRadioChannelGroup); } rootElement.AppendChild(nodeRadioChannelGroups); }[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Talk
Installing over development build
Contact us
RSS
Top
Bottom