locast2plex icon indicating copy to clipboard operation
locast2plex copied to clipboard

Ampersand in channel name

Open hitnrun30 opened this issue 3 years ago • 2 comments

Plex couldn't load the channels, so I researched and found the reason to be that one of the channels friendly names was H&I. The page didnt render. You will need to add something to the code that creates the channels info to filter out or otherwise for an ampersand.

hitnrun30 avatar Feb 09 '21 22:02 hitnrun30

I suspect you have a different problem. I also have H&I, and everything seems to be working reliably with it. I just tested live watching, and the EPG data is present.

Selection_002_2021_16_Feb

Guyverix avatar Feb 16 '21 19:02 Guyverix

I ran into this same issue when initially adding the tuner which caused Plex to fail during the channel scan (0 channels found). The ampersand causes the XML generated when browsing "/devices/wwmtinpl/channels" to be invalid. I fixed it locally by using saxutils.escape() to clean up the channel names when generating that XML. Once I get a dev environment setup I'll try to create a PR.

RyanMathewson avatar Mar 23 '21 14:03 RyanMathewson