From bf39101bb65c1c1400aa47d0c4e9d516267876e0 Mon Sep 17 00:00:00 2001 From: superbonaci Date: Fri, 30 Aug 2024 14:33:21 +0200 Subject: [PATCH 1/2] Update TwitchHelper.cs - Add h265/HEVC request --- TwitchDownloaderCore/TwitchHelper.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TwitchDownloaderCore/TwitchHelper.cs b/TwitchDownloaderCore/TwitchHelper.cs index 71f9be56..e5a97ff8 100644 --- a/TwitchDownloaderCore/TwitchHelper.cs +++ b/TwitchDownloaderCore/TwitchHelper.cs @@ -66,7 +66,7 @@ public static async Task GetVideoPlaylist(long videoId, string token, st { request = new HttpRequestMessage() { - 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"), + 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,h265,h264"), Method = HttpMethod.Get }; response = await httpClient.SendAsync(request); @@ -77,7 +77,7 @@ public static async Task GetVideoPlaylist(long videoId, string token, st { request = new HttpRequestMessage() { - RequestUri = new Uri($"https://twitch-downloader-proxy.twitcharchives.workers.dev/{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"), + RequestUri = new Uri($"https://twitch-downloader-proxy.twitcharchives.workers.dev/{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,h265,h264"), Method = HttpMethod.Get }; response = await httpClient.SendAsync(request); @@ -1170,4 +1170,4 @@ private static VideoMomentEdge GenerateVideoMomentEdge(int startSeconds, int len }; } } -} \ No newline at end of file +} From 2040af28a05a74aef415eff3d9626bc92ef84774 Mon Sep 17 00:00:00 2001 From: superbonaci Date: Fri, 30 Aug 2024 14:34:43 +0200 Subject: [PATCH 2/2] Update TwitchHelper.cs - Delete newline for Visual Studio