2.7.5 • Published 2 years ago

twitchrec v2.7.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Install

$ npm i -g twitchrec

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

Options

NameTypeDescriptionInputRequired
-h --helpExtraDisplay information about program.
-u --usersettingSpecify what user to recordstring
-r --rerunsettingEnable or disable rerunsboolean
-c --categorysettingChose specific category to record.string
-m --maxsettingControl how large file can becomenumber
-l --loopsettingAutomatically wait for next streamboolean
-d --directorysettingChose what directory to save tostring
-q --qualitysettingWhat quality to record. 0 is highestnum
-v --vodtoolRecord vod using vod IDstring

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
2.7.5

2 years ago

2.7.4

2 years ago

2.7.3

2 years ago

2.7.2

2 years ago

2.7.1

2 years ago

2.7.0

2 years ago

2.6.1

2 years ago

2.6.0

2 years ago

2.5.3

2 years ago

2.5.2

2 years ago

2.5.1

2 years ago

2.5.0

2 years ago

2.4.5

2 years ago

2.4.4

2 years ago

2.4.3

2 years ago

2.4.2

2 years ago

2.4.1

2 years ago

2.4.0

2 years ago

2.3.15

2 years ago

2.3.14

2 years ago

2.3.13

2 years ago

2.3.12

2 years ago

2.3.11

2 years ago

2.3.10

2 years ago

2.3.9

2 years ago

2.3.8

2 years ago