[BUG] - Channel name with "&" causes no channels to be returned

I have a Clearstream TV tuner and was trying to integrate it with Plex. After performing a software update on the tuner (as suggested by the Android app), Plex successfully found the tuner and suggested scanning for channels. At 99%, I had found 55 channels, but when the scan was complete, I was told that zero channels were found. I was able to stop the scan at 30% and use 17 channels so I figured one of the channels must be breaking it.

I followed this guide: https://www.reddit.com/r/PleX/comments/7lr0fi/how_to_fix_missing_channels_in_the_dvr/ but didn’t see any duplicate IDs. But after stopping and rescanning multiple times, I found that a channel called “H&I” would break the return. Considering that the channels are stored as an XML chunk saved into a mysql database, this isn’t a surprise. I changed the name to “HNI” and, bingo, I had all 55 channels.

Could you please tell which country and postal code you used during set up of your DVR?
So developers can recreate the issue.

Yes, its 23504 in the US (Norfolk, VA). If it is helpful, I can try to generate a debug log for you.

Yes, please do. But please include the complete ZIP archive.

  • activate debug logging (but not ‘verbose’ logging!)
  • restart plex server
  • perform the channel scan
  • wait 1 minute
  • fetch logs

Otto, I’ve attached my debug logs. The logging was already enabled, so I just went ahead and grabbed it. Let me know if you need me to wipe them and start fresh to make it easier to read - I’ve been using this server for a few years. BTW, I just replicated the problem and solution on a second computer.

Plex Media Server Logs_2019-04-01_09-34-07.zip (1.9 MB)

Did you grab the logs immediately after the scan? If not, please repeat the scan. Because the logs don’t store everything indefinitely. Depending on server activity, logs get flushed out by newer events.

Gotcha. Ok did it again. First I opened the DVR’s enabled channels and told it to rescan. I saved it with 0 channels. Then I deleted it and readded it with a scan from scratch which doesn’t allow you save it with 0 channels. It had found 48 channels before showing the results being 0. Here’s that log:

Plex Media Server Logs_2019-04-01_17-11-19.zip (2.2 MB)

1 Like

Yep, there it is in the log:

Apr 01, 2019 17:11:02.842 [10148] ERROR - XML: Entity: line 26:
Apr 01, 2019 17:11:02.842 [10148] ERROR - XML: parser
Apr 01, 2019 17:11:02.842 [10148] ERROR - XML: error :
Apr 01, 2019 17:11:02.842 [10148] ERROR - XML: EntityRef: expecting ‘;’
Apr 01, 2019 17:11:02.842 [10148] ERROR - XML: <Channel drm=“0” channelIdentifier=“id://43.3” name=“H&I” param="" number=“43.3”
Apr 01, 2019 17:11:02.842 [10148] ERROR - XML: ^
Apr 01, 2019 17:11:02.842 [10148] ERROR - Error parsing content.
Apr 01, 2019 17:11:02.846 [10148] ERROR - Error parsing XML: Error parsing file.

It has been determined that there is an issue with the channel list, which the Clearstream is sending to Plex.
Clearstream have been notified and are working on a firmware fix.

1 Like

Glad you figured it out. Other than that it works great. I wish the Clearstream app had a good guide like Plex does.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.