mathewmeconry / TV7_EPG_Parser

Parsers EPG information of different sources and prepares them for TV7 (Init7) in XMLTV format
MIT License
17 stars 12 forks source link

Invalid output XML due to JSON mixing in #39

Closed evoL closed 2 months ago

evoL commented 2 months ago

It looks like the full XML file from https://github.com/mathewmeconry/TV7_EPG_Data/commit/8292fcdacb451561fcdf6008fe95c6ac2dc8fd8e is invalid.

I've run it through xmllint that showed numerous errors.

Expand xmllint output ``` tv7_epg.xml:5699: parser error : attributes construct error rica tra miti e leggende.9009006006001500150012001200360036003900390018001800600600420420360036003900390060060036003600360036003600360018001800600600180018001500150078078030030060060060060036003600600600600600600600600600600600300300600600600600600600300300600600600600600600600600600600600600144001440060060060060060060014400144006006006006001500150014400144001440014400

I've checked the file itself around the first error and it looks like some JSON got mixed in:

`

Nelle Alpi Apuane alcune rocce presentano misteriose incisioni che raffigurano i pennati, un tipo particolare di falcetto, versatile strumento del pastore e del boscaiolo. Un'esplorazione storica tra miti e leggende.900 `
mathewmeconry commented 2 months ago

Apparently init7 has some faulty icon information in their output... I fixed the issue by adding a valid URL check in the code with https://github.com/mathewmeconry/TV7_EPG_Parser/commit/846eab5a031628d7a48dd37e91d71d4e0171f436. The file are updated and don't show this pattern anymore. Could you please verify if the new data works?

evoL commented 2 months ago

Thank you for the quick response and the fix! It looks like the new data works fine.