ValidateGrabber(3)
π NAME π
okay bestie, welcome to ValidateGrabber(3) from the User Contributed Perl Documentation girlies β¨
XMLTV::ValidateGrabber - Validates an XMLTV grabber π
πΈ DESCRIPTION πΈ
Itβs a utility library that validates that a grabber properly implements the capabilities described at
http://wiki.xmltv.org/index.php/XmltvCapabilities
The ValidateGrabber call first asks the grabber which capabilities it claims to support and then validates that it actually does support these capabilities. No cap, thatβs the whole vibe check. π¦
β¨ EXPORTED FUNCTIONS β¨
All these functions are exported on demand. π«Ά
π ConfigureGrabber π
ConfigureGrabber( "./tv_grab_new", "./tv_grab_new.conf" )
π¦ ValidateGrabber π¦
Run the validation for a grabber. Main character energy fr fr.
ValidateGrabber( "tv_grab_new", "./tv_grab_new", "./tv_grab_new.conf",
"/tmp/new_", "./blib/share", 0 )
ValidateGrabber takes the following parameters:
- a short name for the grabber. This is only used when printing error messages.
- the command to run the grabber.
- the name of a configuration-file for the grabber.
- a file-prefix that is added to all output-files.
- a path to a directory with metadata for the grabber. This path is passed to the grabber via the
--shareoption if the grabber supports the capability'share'.undefif no--shareparameter shall be used. - a boolean specifying if the
--cacheparameter shall be used for grabbers that support the'cache'capability.
ValidateGrabber returns a list of errors that it found with the grabber. Each error takes the form of a keyword:
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 toSTDERReven though the--quietoption was used.outputdiffersβ The grabber produced different output when called with different combinations of--outputand--quiet.caterrorβtv_catreturned an error-code when we asked it to process the output from the grabber.sorterrorβtv_sortfound 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.
Additionally, the list of errors will contain error keywords from XMLTV::ValidateFile if the xmltv-file generated by the grabber was not valid.
If no errors are found, an empty list is returned. Slay. Clean validation, iconic behavior. π
π COPYRIGHT π
Okay legal moment, bestie β hereβs the whole thing, preserved exactly:
Copyright (C) 2006 Mattias Holmlund.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
π thatβs the whole page, bestie! source/version: perl v5.42.2; date: 2025-06-30 β bye, go validate something π
β¨
π¦ where this page comes from
- alpine 3.24: xmltv-doc 1.4.0-r1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms