Skip to content

Commit

Permalink
Update mobile app versions & bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
kuylar committed Mar 9, 2024
1 parent c2e82f7 commit 7cc5443
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions InnerTube/InnerTube.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ private async Task<JObject> MakeRequest(RequestClient client, string endpoint, I
hrm.Headers.Add("X-Youtube-Client-Version", client switch
{
RequestClient.WEB => "2.20220809.02.00",
RequestClient.ANDROID => "17.31.4",
RequestClient.IOS => "17.31.4",
RequestClient.ANDROID => "19.09.4",
RequestClient.IOS => "19.09.4",
var _ => ""
});
hrm.Headers.Add("Origin", "https://www.youtube.com");
if (client == RequestClient.ANDROID)
hrm.Headers.Add("User-Agent", "com.google.android.youtube/17.31.35 (Linux; U; Android 11) gzip");
hrm.Headers.Add("User-Agent", "com.google.android.youtube/19.09.4 (Linux; U; Android 11) gzip");

HttpResponseMessage ytPlayerRequest = await HttpClient.SendAsync(hrm);
if (!ytPlayerRequest.IsSuccessStatusCode)
Expand Down
4 changes: 2 additions & 2 deletions InnerTube/InnerTube.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<PackageLicenseUrl>https://github.com/kuylar/InnerTube/blob/master/LICENSE</PackageLicenseUrl>
<RepositoryUrl>https://github.com/kuylar/InnerTube</RepositoryUrl>
<PackageTags>youtube, innertube</PackageTags>
<AssemblyVersion>1.0.27</AssemblyVersion>
<Version>1.0.27</Version>
<AssemblyVersion>1.0.28</AssemblyVersion>
<Version>1.0.28</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Remove/comment this while looking for missing XMLDocs -->
<NoWarn>$(NoWarn);1591</NoWarn>
Expand Down
6 changes: 3 additions & 3 deletions InnerTube/InnerTubeRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ private void UpdateContext(RequestClient requestClient, string language = "en",
break;
case RequestClient.ANDROID:
clientContext.Add("clientName", "ANDROID");
clientContext.Add("clientVersion", "17.31.35");
clientContext.Add("clientVersion", "19.09.4");
clientContext.Add("osName", "Android");
clientContext.Add("osVersion", "11");
clientContext.Add("androidSdkVersion", 30);
clientContext.Add("platform", "MOBILE");
clientContext.Add("userAgent", "com.google.android.youtube/17.31.35 (Linux; U; Android 11) gzip");
clientContext.Add("userAgent", "com.google.android.youtube/19.09.4 (Linux; U; Android 11) gzip");
break;
case RequestClient.IOS:
clientContext.Add("clientName", "IOS");
clientContext.Add("clientVersion", "18.15.1");
clientContext.Add("clientVersion", "19.09.4");
clientContext.Add("deviceMake", "Apple");
clientContext.Add("deviceModel", "iPhone14,5");
clientContext.Add("osName", "iOS");
Expand Down

0 comments on commit 7cc5443

Please sign in to comment.