mirror of
https://github.com/imputnet/cobalt.git
synced 2026-03-11 00:02:16 -05:00
[PR #79] [MERGED] feat: add twitch vod/clip support #1007
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/imputnet/cobalt/pull/79
Author: @Snazzah
Created: 2/4/2023
Status: ✅ Merged
Merged: 9/16/2023
Merged by: @wukko
Base:
current← Head:feat/twitch📝 Commits (8)
fa7af1bfeat: add twitch vod/clip supportc8d0eb8chore: update readme8551243Merge branch 'current' into feat/twitchff9d487Merge branch 'current' into feat/twitchad9b6ebtwitch clean upf7247b8fix wordingad8a9c4remove vodse0af5efone more fix📊 Changes
9 files changed (+186 additions, -10 deletions)
View changed files
📝
README.md(+1 -0)📝
src/modules/processing/hostOverrides.js(+8 -0)📝
src/modules/processing/match.js(+8 -0)📝
src/modules/processing/matchActionDecider.js(+1 -1)➕
src/modules/processing/services/twitch.js(+76 -0)📝
src/modules/processing/servicesConfig.json(+7 -1)📝
src/modules/processing/servicesPatternTesters.js(+6 -4)📝
src/modules/sub/utils.js(+49 -3)📝
src/test/tests.json(+30 -1)📄 Description
I've tried out adding twitch support to this, it's a bit weird since I've had to change some stuff with the utils:
tldoption to services so TLDs other than.comwork (this should really be able to be set for each pattern though)streamLiveRender()allows to just take one stream and an extra flag for m3u8 URLs so FFmpeg can take a m3u8 file and convert it to something else properlyClips and VODs videos work, but requesting audio only from VODs and clips do not work at the moment. Not sure what combination of args will make that work but I couldn't get that bit working well.
You can test with these links:
Not sure what to show if the streamer was banned, so I just used the
ErrorEmptyDownloaderror.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.