A tiny bug in WebEPG parsing (1 Viewer)

Khurram

Portal Pro
May 12, 2008
211
5
Home Country
Pakistan Pakistan
Country flag
I believe I have found a bug in WebEPG parsing. If the string that is selected by WebEPG based on the url and start plus end strings has the "<" character as its last character, WebEPG will not be able to find any program information. I have traced it in code and it seems that it tries to parse past the last < character to find which tag it belongs to. Obviously, there is no tag there as the string has already ended and WebEPG throws an error.

The obvious easy solution is to avoid start and end strings which will result in such strings. If someone is interested, the code to fix is in HtmlString.cs file in the TagList function. Just change the 3rd statement in the function from

if (source == '<')

to

if (source == '<' && i < source.Length-1)

By the way, I cant use the word sub-string (without the hyphen) in my post as it throws a "http 501 not implement/http 505 version not supported" error when I click on post or preview button :confused:
 

franky52

Portal Member
December 15, 2008
12
0
Home Country
Spain Spain
Hi!
Could this be the reason why I can't get info from the web I mentioned in my post??
Thanks for helping.
 

Khurram

Portal Pro
May 12, 2008
211
5
Home Country
Pakistan Pakistan
Country flag
This is easy to check through WebEPG Designer. After filling in the url, start and end textboxes, just load the page and then check the "source" textbox. If the last character is the < sign, you will have this problem.
 

Users who are viewing this thread

Similar threads

We are proud to present MediaPortal 2.3.1 MediaPortal 2.3.1 is a full-blown media center software that addresses the most common user requirements out of the box. Aside from its support for Live TV and Radio, it offers a complete media server for music, movies, and TV shows. Info is automatically downloaded from various sources to...
We are proud to present MediaPortal 2.3.1 MediaPortal 2.3.1 is a full-blown media center software that addresses the most common...
We are proud to present MediaPortal 2.3.1 MediaPortal 2.3.1 is a full-blown media center software that addresses the most common...
Replies
0
Views
970
If it keeps annoying me enough I'll have to help you with that :whistle: That's weird, because video locks up first with audio still playing for a few more seconds before MediaPortal restarts, but this will give me a few more avenues to test for. The main difference is that when I was on 1.19-1.21 without this issue that it was HTPC...
If it keeps annoying me enough I'll have to help you with that :whistle: That's weird, because video locks up first with audio...
I've been dealing with weird crashes. The display would go into a checkerboard, or mainly a giant purple banner across the screen...
Replies
8
Views
802
So, for anyone that would like EPG data for radio stations in the US, here's my finished grabber. You'll need to customize it much like what's required for the IMDb US TV grabber. Go to DAR.fm to figure out the "siteId" (a 4 digit number) for each station you'd like guide data for, and modify the www_dar_fm_com.xml file according to...
So, for anyone that would like EPG data for radio stations in the US, here's my finished grabber. You'll need to customize it much...
I'm attempting to create a WebEPG grabber for US radio stations using DAR.fm as a source. I don't appear to be getting any errors...
Replies
4
Views
2K
Good work guys!
Good work guys!
We are proud to present MediaPortal 2.2.1 After the release of MediaPortal 2.2 Final the team focussed on improving usability and...
Replies
1
Views
3K
Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the next release. We allocate about one month for Pre Release testing. In that time we will only fix bugs, after which comes the final release! Highlights of this release Bugfixes: [MP1-4969] - Fix typo in...
Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
Replies
0
Views
2K
Top Bottom