tellytv / telly

An IPTV proxy
MIT License
760 stars 104 forks source link

XMLTV parser fails on broken date #180

Closed chazlarson closed 6 years ago

chazlarson commented 6 years ago

telly release with the issue:

telly-1.1.0.2.darwin-amd64

Last working telly release (if known):

Operating environment (Docker/Windows/Linux/QNAP, etc.):

OS X

Description of problem:

XML contains:

<programme channel="BTSport2.uk" start="20180904033000 +0000" stop="20180904040000 +0000">
    <title lang="en">Arsenal Classics</title>
    <desc lang="en">Classic Arsenal matches from the football archives, featuring a memorable league clash with Aston Villa (1991) and a League Cup third round win over Manchester United . 3/8</desc>
    <date>1991|2001</date>
    <category lang="en">Sport</category>
    <icon src="https://images.metadata.sky.com/pd-image/b24bc05c-92cd-42b6-be67-45f90c60b521/16-9" />
    <episode-num system="xmltv_ns">.24.</episode-num>
    </programme>

Telly fails with:

INFO[2018-08-30T15:58:01-05:00] telly is preparing to go live (version=1.1.0.2, branch=dev, revision=f1de7f04430f9f6d35ad7caf55d4d5360a1d681c)
INFO[2018-08-30T15:58:01-05:00] Loading M3U from http://api.vaders.tv/vget?username=REDACTED&password=REDACTED&vod=false&format=ts
INFO[2018-08-30T15:58:04-05:00] Loading XMLTV from http://vaders.tv/p2.xml.gz
INFO[2018-08-30T15:58:05-05:00] File (http://vaders.tv/p2.xml.gz) is gzipp'ed, ungzipping now, this might take a while
ERRO[2018-08-30T15:58:13-05:00] Could not decode xmltv programme              error="the type Date field of date is not a time, value is: 1991|2001"
ERRO[2018-08-30T15:58:13-05:00] error when parsing EPG                        error="the type Date field of date is not a time, value is: 1991|2001"
ERRO[2018-08-30T15:58:13-05:00] error when preparing provider                 error="the type Date field of date is not a time, value is: 1991|2001"
ERRO[2018-08-30T15:58:13-05:00] error when processing provider                error="the type Date field of date is not a time, value is: 1991|2001"
INFO[2018-08-30T15:58:13-05:00] telly is live and on the air!
INFO[2018-08-30T15:58:13-05:00] Broadcasting from http://192.168.1.61:6077/
INFO[2018-08-30T15:58:13-05:00] EPG URL: http://192.168.1.61:6077/epg.xml

Contents of telly.config.toml [if you're using a version above 1.1]:


**Command line used to run telly [if applicable]:**
- REMEMBER TO DELETE ANY CREDENTIALS IN CONFIG FILES OR COMMAND LINES

**Docker run command used to run telly [if applicable]:**
- REMEMBER TO DELETE ANY CREDENTIALS IN CONFIG FILES OR COMMAND LINES

**telly or docker log:**


**Additional information:**
ptorok1984 commented 6 years ago

I tried to talk to the support guys at Vader's, it was pointless... They kept telling me to read the pinned post on the app they support... And will not fix the XML file.

I love this feature of auto downloading/ungz.. Any plans in the work to fix this?

robbiet480 commented 6 years ago

Yep