This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

twitchrec

2.7.5 • Public • Published

Github test Latest npm version GitHub last commit GitHub commit activity GitHub repo size Dependents

Install

$ npm i -g twitchrec

You can also install this without the -g but it will not be available globally.

Options

Name Type Description Input Required
-h --help Extra Display information about program.
-u --user setting Specify what user to record string
-r --rerun setting Enable or disable reruns boolean
-c --category setting Chose specific category to record. string
-m --max setting Control how large file can become number
-l --loop setting Automatically wait for next stream boolean
-d --directory setting Chose what directory to save to string
-q --quality setting What quality to record. 0 is highest num
-v --vod tool Record vod using vod ID string

Example commands

$ twitchrec -u <username>

$ twitchrec -u <username> -r <true/false> -c <category> -m <num> -l <true/false> -d <path> -q <num>

$ twitchrec --user <username> --rerun <true/false> --category <category> --max <num> --loop <true/false> --directory <path> --quality <num>

$ twitchrec -u <username> -v <vodID>

$ twitchrec --user <username> --vod <vodID>

Issues

If you are experiencing issues please open an issue on GitHub and I'll do my best to help you.

Features

  • Record only certain categories
  • Record until certain file size has been reached
  • Enable/Disable recording rerun streams
  • Continue waiting for next stream after stream is done
  • Automatically sorts recorded vods into folders based on streamer username
  • Choose what quality to record.
  • Record vods in max quality

How it's done

The program works by using puppeteer to open a twitch stream checking if it is live and whether it is a rerun and more. Once it has gotten the required information and knows the specified user is live it will grab the twitch stream m3u8stream link. Using this link it will use m3u8stream to record that URL to a mp4 format.

This was made for windows and ubuntu so it has not been tested in any other operating system. Though it will most likely still work. Please see Requirements section.

Feel free to take as much as you want from this project and use it on your own.

Requirements

  • For both windows and Linux you need Node.js and NPM installed.

Build Setup

# clone repo
$ git clone https://github.com/StianWiu/TwitchRec/

# install dependencies
$ npm i

# start project with node
$ node index.js --user pignuuuu

# To see all options run
$ node index.js --help

Extra

In order to edit the code you will need to go into the index.ts file and add your code there.

Then to compile it into JavaScript

$ npm run build

Package Sidebar

Install

npm i twitchrec

Weekly Downloads

0

Version

2.7.5

License

ISC

Unpacked Size

69.6 kB

Total Files

8

Last publish

Collaborators

  • stianwiu