diff --git a/extractor/twitch/VOD.go b/extractor/twitch/VOD.go index 1b0c1b6..f335543 100644 --- a/extractor/twitch/VOD.go +++ b/extractor/twitch/VOD.go @@ -68,6 +68,10 @@ func GetVODPlaylist(vodID string) ([]byte, error) { return []byte{}, err } + if resp.StatusCode == 403 { + return []byte{}, errors.New("Video is sub-only") + } + body, err := io.ReadAll(resp.Body) if err != nil { return []byte{}, err