Skip to content

Commit

Permalink
Fix #760
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Jul 31, 2023
1 parent 57bb9d7 commit 8848024
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions TwitchDownloaderWPF/PageVodDownload.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ private async Task GetVideoInfo()
Task<GqlVideoResponse> taskVideoInfo = TwitchHelper.GetVideoInfo(videoId);
Task<GqlVideoTokenResponse> taskAccessToken = TwitchHelper.GetVideoToken(videoId, TextOauth.Text);
await Task.WhenAll(taskVideoInfo, taskAccessToken);

if (taskAccessToken.Result.data.videoPlaybackAccessToken is null)
{
throw new NullReferenceException("Invalid VOD, deleted/expired VOD possibly?");
}

Task<string[]> taskPlaylist = TwitchHelper.GetVideoPlaylist(videoId, taskAccessToken.Result.data.videoPlaybackAccessToken.value, taskAccessToken.Result.data.videoPlaybackAccessToken.signature);
try
{
Expand Down

0 comments on commit 8848024

Please sign in to comment.