Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmltv::supplement(3pm) [debian man page]

Supplement(3pm) 					User Contributed Perl Documentation					   Supplement(3pm)

NAME
XMLTV::Supplement - Supplementary file loader for XMLTV grabbers DESCRIPTION
Utility library that loads supplementary files for xmltv-grabbers and other programs in the xmltv-distribution. Supplementary files can be loaded either via http or from a local file, depending on the configuration of the module. The default is to load the files from http://supplement.xmltv.org. This can be changed by setting the environment variable XMLTV_SUPPLEMENT to the new root- directory or root-url for supplementary files. EXPORTED FUNCTIONS
All these functions are exported on demand. GetSupplement Load a supplement file and return it as a string. Takes two parameters: directory and filename. my $content = GetSupplement( 'tv_grab_uk_rt', 'channel_ids' ); GetSupplement will always return a string with the content. If it fails to get the content, it prints an error-message and aborts the program. SetSupplementRoot Set the root directory for loading supplementary files. SetSupplementRoot( '/usr/share/xmltv' ); SetSupplementRoot( 'http://my.server.org/xmltv' ); CACHING
The module stores all downloaded files in a cache. The cache is stored on disk in ~/.xmltv/supplement on Unix and in CSIDL_LOCAL_APPDATA//xmltv/supplement on Windows. If a file has been downloaded less than 1 hour ago, the file from the cache is used without contacting the server. Otherwise, if the file has been downloaded more than 1 hour ago, then the module checks with the server to see if an updated file is available and downloads it if necessary. If the server does not respond or returns an error-message, a warning is printed to STDERR and the file from the cache is used. ENVIRONMENT VARIABLES
The XMLTV_SUPPLEMENT environment variable can be used to tell the module where the supplementary files are found. XMLTV_SUPPLEMENT=/usr/share/xmltv XMLTV_SUPPLEMENT=http://supplementary.xmltv.se The XMLTV_SUPPLEMENT_VERBOSE environment variable can be used to get more debug output from XMLTV::Supplement. XMLTV_SUPPLEMENT_VERBOSE=1 COPYRIGHT
Copyright (C) 2007 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. perl v5.14.2 2012-06-30 Supplement(3pm)

Check Out this Related Man Page

ValidateGrabber(3pm)					User Contributed Perl Documentation				      ValidateGrabber(3pm)

NAME
XMLTV::ValidateGrabber - Validates an XMLTV grabber DESCRIPTION
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. 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. ValidateGrabber( "tv_grab_new", "./tv_grab_new", "./tv_grab_new.conf", "/tmp/new_", "./blib/share", 0 ) ValidateGrabber takes the following parameters: o a short name for the grabber. This is only used when printing error messages. o the command to run the grabber. o the name of a configuration-file for the grabber. o a file-prefix that is added to all output-files. o 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. o 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. 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. 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. COPYRIGHT
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. perl v5.14.2 2011-01-26 ValidateGrabber(3pm)
Man Page