FriendTeamInc / VodBot

A command line interface VOD and Clip manager for Twitch.
MIT License
14 stars 1 forks source link

Twitch disallowing access to public VODs #71

Closed NotQuiteApex closed 1 year ago

NotQuiteApex commented 1 year ago

Another issue discovered from Sky's streams, one of them seems to have incorrect permissions on Twitch's servers, and thus preventing anyone from viewing a video that is otherwise listed as publicly accessible. The video in question is: https://www.twitch.tv/videos/226727959

Nothing seems out of the ordinary in the playlist.m3u8, but all the downloaded segments are under a kilobyte. Each segment file has some variant of this message as its contents:

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>TZR0DDSQ0PEEM1TJ</RequestId><HostId>5UAL/zEb2DjYyxMfUejNxAyXrGzgy2JVNkOPYOm/tYBTW3bPeDv5pSZXDp/Tbo3EUM5hltOxpOU=</HostId></Error>

This is purely an issue on Twitch's end, but VodBot should be able to detect it and throw a relevant error. A simple string search for something like the XML header in each chunk download might work? We don't want to slow the download down too much with a bunch of string checks.