TV_MERGE(1)
π¦ NAME π¦
okay bestie, this is tv_merge(1) β the little icon that merges (combines) two XMLTV files. That's the whole name vibe: tv_merge = merge (combine) two XMLTV files, periodt. π
β¨ SYNOPSIS β¨
Here's the exact group-chat invite, no cap:
tv_merge [-t] -i FILE -m FILE -o FILE
π DESCRIPTION π
So picture this: you've got XMLTV listings chilling in two files, and tv_merge reads them and merges them together. Unlike tv_cat (which literally just joins files), this one will update (add/replace/delete) the original XMLTV file with the channels and programmes contained in the second file. It's giving glow-up, not just copy-paste. π«Ά
It works with multiple channels, and it will insert any new programmes and delete any overlapping programmes. Main character merge behavior, honestly. π
β οΈ IMPORTANT bestie: the input files must be pre-sorted into datetime within channel order by using the--by-channeloption totv_sort. Like, exactly this:
tv_sort --by-channel --output FILE FILE
All programmes must have start and stop times. No skipping that, fr fr.
(Note: programmes in the merged-in file replace any in the master file, i.e. data are not updated within programmes. So it's replace energy, not merge-inside-each-programme energy. π)
This program uses XML::TreePP, which doesn't write <DOCTYPE> definitions in the output file. If you need to add a suitable <DOCTYPE> tag, then use the optional -t parameter:
tv_merge -t -i FILE -m FILE -o FILE
πΈ EXAMPLE πΈ
To merge all channels/programmes in newadditions.xml into master.xml, and write the output to newmaster.xml with a DOCTYPE tag:
tv_merge -t -i master.xml -m newadditions.xml -o newmaster.xml
slay. new master file, who dis. π
π₯ SEE ALSO π₯
π AUTHOR π
Copyright Geoff Westcott, February 2013. π
This code is distributed under the GNU General Public License v2 (GPLv2).
mwah π β this page is from perl v5.42.2, dated 2025-06-30, and it's TV_MERGE(1) all the way. π§
π¦ 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