TV_GRAB_FI(1)

๐Ÿ“ฆ version 1.4.0, in alpine 3.24

๐Ÿ’– tv_grab_fi(1) ๐Ÿ’–

okay bestie so you're reading TV_GRAB_FI(1), which is a User Contributed Perl Documentation page โ€” section 1 of the manual, the good section, the "type this in the terminal" section โœจ


๐ŸŒธ 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 like, this grabber scoops up TV listings for several channels available in Finland. The data comes from various sources, e.g. www.telkku.com. ๐Ÿ”Š

And here's the tea ๐Ÿต โ€” the grabber relies on parsing HTML, so it might legitimately just stop working when the web page layout is changed. no cap, it's giving fragile. Not its fault, it's the HTML's fault ๐Ÿ’€

You need to run tv_grab_fi --configure first to create the channel configuration for your setup. Do that one time and you're slaying. After that, subsequent runs of tv_grab_fi will grab the latest data, process them and produce XML data on the standard output โœจ


๐Ÿ‘‘ COMMANDS ๐Ÿ‘‘

  • NONE โ€” Grab mode. That's the default, main-character behaviour ๐ŸŽฌ
  • --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. It literally just asks you ๐Ÿซถ
  • --description โ€” Print the description for this grabber.
  • --help|-h|-? โ€” Show this help page. (yes, -? is a real option, she's quirky like that ๐Ÿ™ˆ)
  • --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. Caching is so underrated fr fr ๐Ÿ”ฅ
  • --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 bar ๐Ÿ“Š
    • TermNoProgressBar โ€” Terminal output without progress bar ๐Ÿ™ˆ
    • Tk โ€” Tk-based GUI ๐ŸชŸ
  • --quiet โ€” Suppress any progress messages to the standard output. Silence is golden ๐Ÿคซ

๐Ÿ’œ 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. two whole weeks of television, iconic ๐Ÿ“บ

  • --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. live in the now bestie โœจ

  • --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.


๐Ÿ’… 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 ๐Ÿ‘€ (yes that's the actual bug, we said what we said)


so that's the whole page bestie, you ate that ๐Ÿซถ and fr fr, this was wrought by perl v5.42.2 and stamped 2025-06-30 โ€” take it to the group chat, iykyk โœจ๐Ÿ’–๐ŸŽ€

๐Ÿ“ฆ where this page comes from