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
Support
Electronic Program Guide
xmlTV
Some channels have no data xlmtv webgrab++
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="mm1352000" data-source="post: 1085965" data-attributes="member: 82144"><p>Hello Ron</p><p></p><p>Thanks for investigating. <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></p><p>No, not for names. On checking the code I can see the problem with brackets, but it relates to the ID, not the name:</p><p>[code]</p><p> int id = (int)row.Cells["Id"].Value;</p><p> string guideChannelAndexternalId = (string)row.Cells["guideChannel"].Value;</p><p></p><p> string externalId = null;</p><p></p><p> if (guideChannelAndexternalId != null)</p><p> {</p><p> int startIdx = guideChannelAndexternalId.LastIndexOf("(") + 1;</p><p> // the length is the same as the length - startingidex -1 (-1 -> remove trailing ))</p><p> externalId = guideChannelAndexternalId.Substring(startIdx, guideChannelAndexternalId.Length - startIdx - 1);</p><p> }[/code]</p><p></p><p>When you load up a tvguide.xml you can see that the guide channels display as "<name> (<XMLTV ID>)".</p><p>When the plugin goes to save the mappings it parses the XMLTV ID from that grid string.</p><p>So, you can probably now see the problem with having brackets is due to the use of brackets in the XMLTV ID. There would be no problem if the name had brackets... but the ID is a different story.</p><p></p><p>mm</p></blockquote><p></p>
[QUOTE="mm1352000, post: 1085965, member: 82144"] Hello Ron Thanks for investigating. :) No, not for names. On checking the code I can see the problem with brackets, but it relates to the ID, not the name: [code] int id = (int)row.Cells["Id"].Value; string guideChannelAndexternalId = (string)row.Cells["guideChannel"].Value; string externalId = null; if (guideChannelAndexternalId != null) { int startIdx = guideChannelAndexternalId.LastIndexOf("(") + 1; // the length is the same as the length - startingidex -1 (-1 -> remove trailing )) externalId = guideChannelAndexternalId.Substring(startIdx, guideChannelAndexternalId.Length - startIdx - 1); }[/code] When you load up a tvguide.xml you can see that the guide channels display as "<name> (<XMLTV ID>)". When the plugin goes to save the mappings it parses the XMLTV ID from that grid string. So, you can probably now see the problem with having brackets is due to the use of brackets in the XMLTV ID. There would be no problem if the name had brackets... but the ID is a different story. mm [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Electronic Program Guide
xmlTV
Some channels have no data xlmtv webgrab++
Contact us
RSS
Top
Bottom