TV_EXTRACTINFO_EN(1)
π TV_EXTRACTINFO_EN(1) π
okay so first things first, the manual name for this one is TV_EXTRACTINFO_EN(1) β it lives in the User Contributed Perl Documentation section, and honestly? iconic of it.
β¨ NAME β¨
tv_extractinfo_en β reads English-language TV listings and pulls actual info out of the programme descriptions π
π¦ SYNOPSIS π¦
tv_extractinfo_en [--help] [--output FILE] [FILE...]
πΈ DESCRIPTION πΈ
So what this bad boy does: it reads XMLTV data and tries to extract information out of English-language programme descriptions, turning all that human-readable prose into machine-readable form. Like, glow-up for data. β¨
For example, the human-readable text '(repeat)' sitting in a programme description might get replaced by the XML element <previously-shown>. She understood the assignment. π
--output FILEβ write to FILE instead of standard output
This tool also tries to split multipart programmes into their constituents, by looking for a description that seems to contain lots of times and titles. But ngl, that depends on the description following one particular style, and it's useful only for some listings sources β specifically Ananova. So likeβ¦ conditional slay. π«Ά
If some text is marked with the 'lang' attribute as being some language other than English ('en'), it is ignored. not her business, not her problem. π
π SEE ALSO π
xmltv(5).
π§ AUTHOR π§
Ed Avis, ed@membled.com β thank you for your service π«‘π
π BUGS π
okay bestie, real talk. Trying to parse human-readable text is always error-prone β and even more so with the simple regexp-based approach used here. like, we're doing our best with a regexp, okay?? π
But because TV listing descriptions usually conform to one of a few set styles, tv_extractinfo_en does reasonably well. It's fairly conservative β it tries to avoid false positives (extracting "information" which isn't really there) even though this means some false negatives (failing to extract information and leaving it in the human-readable text). she would rather miss a thing than invent a thing, and honestly? respect. π
However β and this is the part where we hold hands β the leftover bits of text after extracting information may not form a meaningful English sentence, or the punctuation may be wrong. the vibes may be off. it's giving frankenstein sentence. π§ββοΈ
On the two listings sources currently supported by the XMLTV package, this program does a reasonably good job. But it has not been tested with every source of anglophone TV listings. so like, no cap, there are unknowns out there. π
π cute sign-off time: this page is fromperl v5.42.2, dated2025-06-30, and yes it's stillTV_EXTRACTINFO_EN(1)all the way down. bye bestie, go extract some info πππ
π¦ 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