Josh5 / TVH-IPTV-Config

Apache License 2.0
22 stars 4 forks source link

[Bug]:error generating epg.xml #5

Closed Tezzlicious closed 2 months ago

Tezzlicious commented 1 year ago

Describe the Bug

After adding channels the epg.xml returns the following error in the browser:

This page contains the following errors:

error on line 5 at column 8: Couldn't find end of Start Tag icon
Below is a rendering of the page up to the first error.

On the server the epg.xml stops at the first channel icon tag:


<?xml version='1.0' encoding='UTF-8'?>
<tv generator-info-name="TVH-IPTV-Config" source-info-name="TVH-IPTV-Config - v0.1">
    <channel id="1000_Channel1">
        <display-name>Channel 1</display-name>
        <icon

In the database the logo_url column in table channels is NULL.

The logo column during channel selection (Import channels from playlist --> Select Stream From Playlist) is empty.

I also noticed that on the Channel Details view, the section after channel name keeps skeleton loading. Am I supposed to see some kind of logo info?:

image

Because of this the whole EPG for all channels stays empty.

Thanks for you efforts and keep up the good work.

Steps to Reproduce

  1. Add M3U playlist.
  2. Add EPG xmltv url.
  3. Import some channels and link EPG.

Expected Behavior

EPG should be generated ok and logo should be selectable or used from TVH.

Screenshots

No response

Relevant Settings

No response

Version

josh5/tvh-iptv:latest

Platform

Docker: josh5/tvh-iptv:latest

Running Unraid OS.

Relevant log output

No response

Josh5 commented 2 months ago

This was likely caused by a thread lock on the application. The recent improvements to the app should hopefully preventing things like this. Ultimately, the application cannot read from the database if a large EPG or playlist is in the process of being imported. It gets into a locked state and then if you refresh the web interface, it may fail to load certain things because the request for the config from the database failed.