Implemented:
- Client: (see below example)
import MirakurunClient from "mirakurun";
const client = new MirakurunClient();
// get service list
client.getServices().then(res => console.log(res));
// get channel stream and save to file
const out = fs.createWriteStream("out.ts");
client.getChannelStream("GR", "16").then(ts => ts.pipe(out));
// get service logo and save to file
client.getLogoImage(3239123610).then(buffer => fs.writeFileSync("mx2.png", buffer));
Improved:
- performance
Package:
# server
npm install mirakurun@latest -g --unsafe --production
# client
npm install mirakurun@latest --save