Skip to content

Commit

Permalink
Fix VOD downloading #928
Browse files Browse the repository at this point in the history
  • Loading branch information
lay295 committed Jan 6, 2024
1 parent abe46c6 commit 9de9db3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TwitchDownloaderCLI/TwitchDownloaderCLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<Version>1.53.7</Version>
<Version>1.53.8</Version>
<Copyright>Copyright © lay295 and contributors</Copyright>
<Description>Download and render Twitch VODs, clips, and chats</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down
3 changes: 1 addition & 2 deletions TwitchDownloaderCore/TwitchHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ public static async Task<string> 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"),

This comment has been minimized.

Copy link
@ScrubN

ScrubN Jan 6, 2024

Collaborator

Just changing the old URI to https seems to also work, but this one works too so I'm not complaining.

This comment has been minimized.

Copy link
@lay295

lay295 Jan 6, 2024

Author Owner

Ah didn't notice, just matched what I saw in my incognito tab network requests. Good to know though, wonder why it was http and not https before though... whoops

Method = HttpMethod.Get
};
request.Headers.Add("Client-ID", "kimne78kx3ncx6brgo4mv6wki5h1ko");
var response = await httpClient.SendAsync(request);
response.EnsureSuccessStatusCode();

Expand Down
2 changes: 1 addition & 1 deletion TwitchDownloaderWPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 9de9db3

@peterzee123
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you! <3

Please sign in to comment.