Skip to content

jesmannstl/tvmerge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tvmerge

An updated tvmerge program written in node.js to merge two or more xmltv files to a new file

How to use

Node.js

npm i && node tv_merge.js

See Command line arguments for configuration options.

Configuration

Command line arguments

Argument Description
-i, --input <file...> Input XMLTV file(s), space-separated or use --folder .xml or .xml.gz
-f, --folder <dir> Directory to merge all .xml files from
-o, --output <file> Output XMLTV file (Required)
-t, --doctype Add DOCTYPE to output file
--dedupe <mode> Removes duplicates on same channel/start first (default), last entry
--gzip Compress output as .gz (automatic if you specify .gz output name)
-q, --quiet Suppress output messages
--tmp-dir <dir> Set temporary directory to process files
--sortname Sort output by <display name> instead of channel id (after any other options
--swapname Swaps the 1st and 2nd <display name>
--chno or --chno=xx Changes the <channel id= to be the 1st <display name> then (2nd <display name>) (after swap if done) with no spaces. Option =xx will add a suffix behind the name. Example --chno=us for a Channel named Comedy Central HD with CCHD would be <channel id="ComedyCentralHD(CCHD).us"

Setup and running in intervals

Running natively

You can run tvmerge natively on your system.

node tv_merge.js [your_options_here]

Examples

node tv_merge.js -i file1.xml file2.xml -o merge.xml

node tv_merge.js -i file1.xml file2.xml file3.xml -o merge.xml

node tv_merge.js -f folder -o merge.xml

node tv_merge.js -f folder -o merge.xml --sortname --swapname --chno=us

node tv_merge.js --tmp-dir F:\tvmerge_temp -i file1.xml file2.xml -o merge.xml.gz

About

An updated and faster tvmerge utility

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published