Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions YoutubeExplode/Videos/VideoController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private async ValueTask<string> ResolveVisitorDataAsync(

request.Headers.Add(
"User-Agent",
"com.google.ios.youtube/19.45.4 (iPhone16,2; U; CPU iOS 18_1_0 like Mac OS X; US)"
"com.google.android.youtube/20.10.38 (Linux; U; ANDROID 11) gzip"
);

using var response = await Http.SendAsync(request, cancellationToken);
Expand Down Expand Up @@ -114,13 +114,11 @@ public async ValueTask<PlayerResponse> GetPlayerResponseAsync(
"contentCheckOk": true,
"context": {
"client": {
"clientName": "IOS",
"clientVersion": "19.45.4",
"deviceMake": "Apple",
"deviceModel": "iPhone16,2",
"clientName": "ANDROID",
"clientVersion": "20.10.38",
"osName": "Android",
"osVersion": "11",
"platform": "MOBILE",
"osName": "IOS",
"osVersion": "18.1.0.22B83",
"visitorData": {{Json.Serialize(visitorData)}},
"hl": "en",
"gl": "US",
Expand All @@ -135,7 +133,7 @@ public async ValueTask<PlayerResponse> GetPlayerResponseAsync(
// https://github.com/iv-org/invidious/issues/3230#issuecomment-1226887639
request.Headers.Add(
"User-Agent",
"com.google.ios.youtube/19.45.4 (iPhone16,2; U; CPU iOS 18_1_0 like Mac OS X; US)"
"com.google.android.youtube/20.10.38 (Linux; U; ANDROID 11) gzip"
);

using var response = await Http.SendAsync(request, cancellationToken);
Expand Down