diff --git a/TwitchDownloaderCLI/TwitchDownloaderCLI.csproj b/TwitchDownloaderCLI/TwitchDownloaderCLI.csproj index 03f68a00..02f56112 100644 --- a/TwitchDownloaderCLI/TwitchDownloaderCLI.csproj +++ b/TwitchDownloaderCLI/TwitchDownloaderCLI.csproj @@ -2,7 +2,7 @@ Exe - 1.53.7 + 1.53.8 Copyright © lay295 and contributors Download and render Twitch VODs, clips, and chats MIT diff --git a/TwitchDownloaderCore/TwitchHelper.cs b/TwitchDownloaderCore/TwitchHelper.cs index 9604320c..5b69db50 100644 --- a/TwitchDownloaderCore/TwitchHelper.cs +++ b/TwitchDownloaderCore/TwitchHelper.cs @@ -59,10 +59,9 @@ public static async Task GetVideoPlaylist(int videoId, string token, str { var request = new HttpRequestMessage() { - RequestUri = new Uri($"http://usher.ttvnw.net/vod/{videoId}?nauth={token}&nauthsig={sig}&allow_audio_only=true&allow_source=true&player=twitchweb"), + RequestUri = new Uri($"https://usher.ttvnw.net/vod/{videoId}.m3u8?sig={sig}&token={token}&allow_source=true&allow_audio_only=true&platform=web&player_backend=mediaplayer&playlist_include_framerate=true&supported_codecs=av1,h264"), Method = HttpMethod.Get }; - request.Headers.Add("Client-ID", "kimne78kx3ncx6brgo4mv6wki5h1ko"); var response = await httpClient.SendAsync(request); response.EnsureSuccessStatusCode(); diff --git a/TwitchDownloaderWPF/MainWindow.xaml.cs b/TwitchDownloaderWPF/MainWindow.xaml.cs index 7c5068b1..10d81faf 100644 --- a/TwitchDownloaderWPF/MainWindow.xaml.cs +++ b/TwitchDownloaderWPF/MainWindow.xaml.cs @@ -78,7 +78,7 @@ private async void Window_Loaded(object sender, RoutedEventArgs e) // it will sometimes start behind other windows, usually (but not always) due to the user's actions. FlashTaskbarIconIfNotForeground(TimeSpan.FromSeconds(3)); - var currentVersion = Version.Parse("1.53.7"); + var currentVersion = Version.Parse("1.53.8"); Title = $"Twitch Downloader v{currentVersion}"; // TODO: extract FFmpeg handling to a dedicated service