Closed FizzyTea closed 1 year ago
It seems you are using an out-of-date version of the DTD (the file used by tv_validate_file containing the xml specification).
You can get the current DTD file here: https://github.com/XMLTV/xmltv/blob/master/xmltv.dtd
You can force use of this file by
tv_validate_file --dtd-file xmltv.dtd listings.xml
XMLTV version 1.0.1 introduced the following changes:
* xmltv.dtd: add 'system' attribute to 'url' element
add 'image' element to 'programme'
add 'image' and 'url' as sub-elements to credits
Thanks for taking the time to report an issue. Please take a moment to review our open/closed issues above, in case your issue has already been reported.
If you are reporting a new issue, please give your issue a descriptive title and fill out the blanks below, providing as much information as possible.
XMLTV Version?
XMLTV module version 1.1.2
XMLTV Component?
tv_grab_uk_tvguide version 1.1.2 tv_validate_file version 1.1.2
Perl Version
Perl v5.28.1
Operating System
Raspbian 10 Buster
What happened?
After producing the xml file with
tv_grab_uk_tvguide --days 2 --nodetailspage | tv_sort > listings.xml
(or indeed without using--nodetailspage
option or piping totv_sort
) I run the commandtv_validate_file listings.xml
I get the following errors (full output attached)Relevant lines of xml (lines 544-575)
Full xml file and validation output attached
What did you expect to happen?
I expect the grabber to produce valid xml which I can view using my epg program. I cannot view the produced xml file with my epg viewer.
Did you see any warnings/errors?
(Please paste any warnings/errors, if available) …
What steps are needed to reproduce this issue?
(Please provide the full commands you are running)
OR
Please attach your config file below:
(Remember to remove any usernames/passwords) …
Any other information?
I don't really see what the problem is due to lack of knowledge and experience of the xmltv spec but it appears to me the listings which cause a problem contain an image. Though the error complains "No declaration for element image", "No declaration for attribute type of element image", and "No declaration for attribute system of element image" it appears they do indeed contain these declarations but perhaps they are invalid in a way I am not seeing?
I could not upload a file with a .xml extension so added .txt to it.
listings.xml.txt
validation.txt