Easily download all recordings on your TVHeadend server. Important: this is potentially buggy software, do not use in production!
See app.js for full example.
All recordings are deleted from TVHeadend after being downloaded.
node app.js config.json
Provide a custom configuration with your tvheadend user information. Not all parameters are required, if any of the fields are empty, then the default values below are used.
{
"protocol": "http:",
"host": "localhost",
"port": 9981,
"user": "",
"pass": "",
"dvr_directory": "DVR"
}
//...
const DVR = require("./dvr.js")
// see config.json for an example obj
new DVR({...config}).downloadRecordings(() => {
console.log("Pull complete. Exiting.")
});
// ...
Downloads a list of all completed recordings and saves each one to ./DVR/{uuid}
// fn: () => {// All downloads complete.}
downloadRecordings(fn)
Basically everything... Pull requests are welcome!
MIT