TV_GRAB_FI(1p)
๐ tv_grab_fi โ the Finland TV listings grabber (manual page 1p, bestie) ๐
okay so first things first, we're in the User Contributed Perl Documentation section, and this whole page is about tv_grab_fi, a lil grabber that pulls TV listings for Finland. sit down, grab a strawberry ๐, and let's get into it.
โจ NAME โจ
tv_grab_fi โ Grab TV listings for Finland ๐ซ๐ฎ
๐ธ SYNOPSIS ๐ธ
tv_grab_fi [--cache <FILE>]
[--config-file <FILE>]
[--days <N>]
[--gui [<OPTION>]]
[--no-randomize]
[--offset <N>]
[--output <FILE>]
[--quiet]
tv_grab_fi --capabilities
tv_grab_fi --configure
[--cache <FILE>]
[--config-file <FILE>]
[--gui [<OPTION>]]
[--quiet]
tv_grab_fi --description
tv_grab_fi --help|-h|-?
tv_grab_fi --list-channels
[--cache <FILE>]
[--gui [<OPTION>]]
[--quiet]
tv_grab_fi --version
๐ฆ DESCRIPTION ๐ฆ
So this one grabs TV listings for several channels available in Finland. The data comes from various sources, like for example www.telkku.com. Here's the tea though: the grabber relies on parsing HTML, so it might just stop working whenever the web page layout gets changed. it's giving fragile, lowkey. ๐ญ
You need to run tv_grab_fi --configure first to create the channel configuration for your setup. After that, subsequent runs of tv_grab_fi will grab the latest data, process them, and produce XML data on the standard output. periodt. ๐
๐ COMMANDS ๐
NONEโ Grab mode. that's it, that's the default vibe.--capabilitiesโ Show the capabilities this grabber supports. See also<http://wiki.xmltv.org/index.php/XmltvCapabilities>.--configureโ Generate the configuration file by asking the users which channels to grab.--descriptionโ Print the description for this grabber.--help|-h|-?โ Show this help page. three whole ways to ask for help, iconic.--list-channelsโ Fetch all available channels from the various sources and write them to the standard output.--versionโ Show the version of this grabber.
๐ GENERIC OPTIONS ๐
--cache FILEโ File name to cache the fetched HTML data in. This speeds up subsequent runs using the same data. bestie, caching is self care. ๐--gui [OPTION]โ Enable the graphical user interface. If you don't specify OPTION then XMLTV will automatically choose the best available GUI. Allowed values are:Termโ Terminal output with a progress barTermNoProgressBarโ Terminal output without progress barTkโ Tk-based GUI
--quietโ Suppress any progress messages to the standard output. no yapping mode. ๐คซ
๐ CONFIGURE MODE OPTIONS ๐
--config-file FILEโ File name to write the configuration to.
Default is $HOME/.xmltv/tv_grab_fi.conf.
๐ฅ GRAB MODE OPTIONS ๐ฅ
--config-file FILEโ File name to read the configuration from.
Default is $HOME/.xmltv/tv_grab_fi.conf.
--days "N"โ Grab"N"days of TV data.
Default is 14 days.
--no-randomizeโ Grab TV data in deterministic order, i.e. first fetch channel 1, days 1 to N, then channel 2, and so on.
Default is to use a random access pattern. If you only grab TV data from one source then the randomizing is a no-op.
--offset "N"โ Grab TV data starting at"N"days in the future.
Default is 0, i.e. today.
--output FILEโ Write the XML data to FILE instead of the standard output.
๐ CONFIGURATION FILE SYNTAX ๐
The configuration file is line oriented, each line can contain one command. Empty lines and everything after the "#" comment character is ignored. Supported commands are:
channel ID NAMEโ Grab information for this channel."ID"depends on the source,"NAME"is ignored and forwarded as is to the XMLTV output file. This information can be automatically generated using the grabber in the configuration mode.series description NAMEโ If a programme title matches"NAME"then the first sentence of the description, i.e. everything up to the first period ("."), question mark ("?") or exclamation mark ("!"), is removed from the description and is used as the name of the episode.series title NAMEโ If a programme title contains a colon (":") then the grabber checks if the left-hand side of the colon matches"NAME". If it does then the left-hand side is used as programme title and the right-hand side as the name of the episode.title map "FROM" 'TO'โ If the programme title starts with the string"FROM"then replace this part with the string"TO". The strings must be enclosed in single quotes ("'") or double quotes ("""). The title mapping occurs before the"series"command processing.title strip parental levelโ At the beginning of 2012 some programme descriptions started to include parental levels at the end of the title, e.g."(S)". With this command all parental levels will be removed from the titles automatically. This removal occurs before the title mapping.
๐ซถ SEE ALSO ๐ซถ
xmltv. go look at it, it's the whole ecosystem, iykyk.
๐ AUTHORS ๐
Current โจ
- Stefan Becker
"chemobejk at gmail dot com" - Ville Ahonen
"ville dot ahonen at iki dot fi"
Retired ๐
- Matti Airas
๐ BUGS ๐
The channels are identified by channel number rather than the RFC2838 form recommended by the XMLTV DTD. not me pointing out the DTD-recommended way and then doing something else entirely ๐
and that's the whole page bestie!! this was documented with perl v5.40.1 and dated 2025-04-19, in the TV_GRAB_FI(1p) era of history. mwah ๐ stay slay, go grab some Finnish TV listings โจ๐บ
๐ฆ where this page comes from
- debian trixie: xmltv-util 1.4.0-1 ยท GPL-2.0-only
- ubuntu resolute: xmltv-util 1.4.0-1 ยท GPL-2.0-only
- ubuntu stonking: xmltv-util 1.4.0-1 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms