A tool for managing your Twitch highlights.
Created to help Twitch streamers with the sudden 100 hour storage limit for Highlights.
- Highlight Scraping: Automatically get all highlight data from a channel. Gets stored in .json files.
- Organized Storage: All highlights and their data get organized by their creation date.
- Downloading Highlights: Download all your highlights using TwitchDownloaderCLI. You can download all highlights, or filter by creation date (year/month).
- Chat Support: Thanks to TwitchDownloaderCLI you can download the chat logs alongside the videos.
- Deleting Highlights: Automatically delete highlights based on filters.*
- Storage Estimation: Get a rough estimate** on how much storage space you need to download your highlights, before downloading.
* = Please be careful when doing this, there is no way to recover or download deleted highlights.
** = Storage estimated is purely based on 1080p@6mbps and the duration of your highlights. Storage estimate does not include size of saving chat. It will never be 100% accurate.
- Node.js
- TwitchDownloaderCLI (for downloading highlights)
- FFmpeg (Required for TwitchDownloaderCLI)
- Twitch auth token
- Clone or download this repository
- Install dependencies:
npm install
- Edit the
config.json
with your preferences:
{
"clientId": "21mgxv714yxzpzkwrm9elag012jicb",
"outputPath": "./output/",
"streamerName": "channel_name",
"downloader": {
"twitchDownloaderCLIPath": "path/to/TwitchDownloaderCLI",
"ffmpegPath": "ffmpeg",
"output": "mp4",
"downloadChat": true,
"chatCompression": "Gzip",
"chatEmbedImages": false
}
}
- Rename
.env.example
to.env
and fill it with your Twitch auth token - Run the tool:
node src/main.js
The tool offers three main functions:
- Gets all highlight data from the specified channel
- Stores all the data in organized JSON files
- Download all highlights
- Download highlights from a specific year
- Download highlights from a specific year and month
- Download chat alongside highlights
- Delete highlights from a specific year
- Delete highlights from a specific year and month
- Delete highlights in a specific timeframe (e.g. All highlights between 2022-01 and 2022-08)
TTV Highlight Tools uses the Twitch API, for this you will need a Twitch OAuth token.
Never share the generated auth token with anyone!
- Go to https://twitchapps.com/tokengen/ in your browser
- In the
Client ID
section fill in21mgxv714yxzpzkwrm9elag012jicb
(This is the ttv-highlight-tools Client ID) - Optional: If you want to use TTV Highlight Tools to delete highlights you will have to put
channel:manage:videos
in theScopes
field. Example: - Press the Connect button, you will now see something like this:
You will only see the video management warning if you followed step 3. This is not mandatory if you don't want to delete highlights using this tool. - Now press the "Authorize" button
- You will now see your Twitch OAuth token. Copy this value and keep it safe.
Do not show this token to anyone
This is only needed if you have highlights marked as "Subscribers Only" or "Private" and you want to download them.
If this is not the case, just ignore this and use the token generated above.
- Open
config.json
and enable personal auth usage by settingpersonalAuthEnabled
totrue
- Get your personal auth token using one of these two tutorials:
- Paste the token in the
.env
file asPERSONAL_AUTH_TOKEN
This error happens when the highlight is marked as "Subscribers Only" or "Private" and you try to download it without a personal auth token. Follow the steps above to enable personal auth usage and get your personal auth token.