mirror of
https://codeberg.org/SafeTwitch/safetwitch-backend.git
synced 2024-12-22 13:13:00 -05:00
Return error if VOD is sub only
This commit is contained in:
parent
0953928e5e
commit
cf9f1d65ca
1 changed files with 4 additions and 0 deletions
|
@ -68,6 +68,10 @@ func GetVODPlaylist(vodID string) ([]byte, error) {
|
||||||
return []byte{}, err
|
return []byte{}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if resp.StatusCode == 403 {
|
||||||
|
return []byte{}, errors.New("Video is sub-only")
|
||||||
|
}
|
||||||
|
|
||||||
body, err := io.ReadAll(resp.Body)
|
body, err := io.ReadAll(resp.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return []byte{}, err
|
return []byte{}, err
|
||||||
|
|
Loading…
Reference in a new issue