ValidateGrabber(3pm)

πŸ“¦
version 1.4.0 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ NAME ✨

XMLTV::ValidateGrabber β€” bestie, this is the module that validates an XMLTV grabber πŸ’… (it's a Perl 3pm page, if the header didn't already spoil it πŸŽ€)


🌸 DESCRIPTION 🌸

okay so. This is a utility library that checks whether a grabber actually does what it says it does β€” like, it verifies that the grabber properly implements the capabilities described at:

http://wiki.xmltv.org/index.php/XmltvCapabilities

The way it works is so smart actually: ValidateGrabber first asks the grabber which capabilities it claims to support, and then it goes and validates that it actually does support these capabilities. vibe check on the grabber's whole personality 😭 it says one thing and this module finds out if it's telling the truth.


πŸ¦‹ EXPORTED FUNCTIONS πŸ¦‹

All these functions are exported on demand (no cap, they show up when you call them ✨).

πŸ’– ConfigureGrabber πŸ’–

ConfigureGrabber( "./tv_grab_new", "./tv_grab_new.conf" )

πŸ’œ ValidateGrabber πŸ’œ

Runs the whole validation thing 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, bestie.
  • 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 --share option if the grabber supports the capability 'share'. undef if no --share parameter shall be used.
  • a boolean specifying if the --cache parameter 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 to STDERR even though the --quiet option was used. not the quiet slay we were hoping for 😭
  • 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.
Alsooo, heads up: 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. periodt. clean. iconic. ✨


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.


okay bestie that's the whole page 🫢 this was written for perl v5.40.1, dated 2025-04-19, and it's the ValidateGrabber(3pm) page from User Contributed Perl Documentation πŸ’– go forth and validate those grabbers, no cap πŸŒˆπŸ’…

πŸ“¦ where this page comes from