Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Commit f8699d7

Browse files
authored
Fix URLs expiring faster than usual (#15)
* Add a params for the ANDROID clients in the GetPlayerAsync() method
1 parent 5726322 commit f8699d7

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

InnerTube/InnerTube.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ public async Task<InnerTubePlayer> GetPlayerAsync(string videoId, bool contentCh
9595
.AddValue("contentCheckOk", contentCheckOk)
9696
.AddValue("racyCheckOk", contentCheckOk);
9797

98+
if (!includeHls)
99+
postData.AddValue("params", "CgIQBg%3D%3D");
100+
98101
JObject playerResponse = await MakeRequest(includeHls ? RequestClient.IOS : RequestClient.ANDROID, "player",
99102
postData,
100103
language, region, true);

InnerTube/InnerTube.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<PackageLicenseUrl>https://github.com/kuylar/InnerTube/blob/master/LICENSE</PackageLicenseUrl>
1111
<RepositoryUrl>https://github.com/kuylar/InnerTube</RepositoryUrl>
1212
<PackageTags>youtube, innertube</PackageTags>
13-
<AssemblyVersion>1.0.16</AssemblyVersion>
14-
<Version>1.0.16</Version>
13+
<AssemblyVersion>1.0.17</AssemblyVersion>
14+
<Version>1.0.17</Version>
1515
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1616
<!-- Remove/comment this while looking for missing XMLDocs -->
1717
<NoWarn>$(NoWarn);1591</NoWarn>

0 commit comments

Comments
 (0)