Difference between revisions of "XmltvTestCodes"

From XMLTV
Jump to: navigation, search
(Test Codes: linkify module references, notice that the manpages miss the XMLTV:: prefix in the file name but not in the title...)
(add badlatin1 error)
Line 77: Line 77:
  
 
An episode-num with system="xmltv_ns" was found where the episode number did not follow the format described in the Xmltv dtd.
 
An episode-num with system="xmltv_ns" was found where the episode number did not follow the format described in the Xmltv dtd.
 +
===badlatin1===
 +
 +
The file is encoded in iso-8859-1 but contains characters that
 +
have no meaning in iso-8859-1 (or are control characters).
 +
A likely cause is some characters in windows-1252 encoding slipped through.

Revision as of 20:39, 1 October 2010

Test Codes

This page documents all errorcodes emitted by test_grabbers and tv_validate_grabber. The descriptions are taken from the documentation of ValidateGrabber(3pm) and ValidateFile(3pm).

noparamcheck

The grabber accepts any parameter without returning an error-code.

noversion

The grabber returns an error when run with --version.

nodescription

The grabber returns an error when run with --description.

nocapabilities

The grabber returns an error when run with --capabilities.

nobaseline

The grabber does not list 'baseline' as one of its supported capabilities.

nomanualconfig

The grabber does not list 'manualconfig' as one of its supported capabilities.

noconfigurationfile

The specified configuration-file does not exist.

graberror

The grabber returned with an error-code when asked to grab data.

notquiet

The grabber printed something to STDERR even though the --quiet option was used.

outputdiffers

The grabber produced different output when called with different combinations of --output and --quiet.

caterror

tv_cat returned an error-code when we asked it to process the output from the grabber.

sorterror

tv_sort found errors in the data generated by the grabber. Probably overlapping programmes.

notadditive

grabbing data for tomorrow first and then for the day after tomorrow and concatenating them does not yield the same result as grabbing the data for tomorrow and the day after tomorrow at once.

notwell

The file is not well-formed XML.

notdtd

The file does not follow the XMLTV DTD.

unknownid

No channel-entry found for a channelid that is used in a programme-entry.

duplicatechannel

More than one channel-entry found for a channelid.

noprogrammes

No programme entries were found in the file.

channelnoprogramme

There are no programme entries for one of the channels listed with a channel-entry.

invalidid

An xmltvid does not look like a proper id, i.e. it does not match /^[-a-zA-Z0-9]+(.[-a-zA-Z0-9]+)+$/.

noid

A programme-entry without an id was found.

emptytitle

A programme entry with an empty or missing title was found.

badstart

A programme entry with an invalid start-time was found.

badstop

A programme entry with an invalid stop-time was found.

badepisode

An episode-num with system="xmltv_ns" was found where the episode number did not follow the format described in the Xmltv dtd.

badlatin1

The file is encoded in iso-8859-1 but contains characters that have no meaning in iso-8859-1 (or are control characters). A likely cause is some characters in windows-1252 encoding slipped through.