From f2037316d36f99ef79ae5792e34d8616ecd31c80 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Thu, 26 Oct 2023 00:07:02 +0200 Subject: [PATCH] fix(YouTube - Client spoof): Set the client version correctly Previously the version was hardcoded. --- .../integrations/patches/spoof/requests/PlayerRoutes.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/app/revanced/integrations/patches/spoof/requests/PlayerRoutes.java b/app/src/main/java/app/revanced/integrations/patches/spoof/requests/PlayerRoutes.java index a37dd6f3..7a769aa2 100644 --- a/app/src/main/java/app/revanced/integrations/patches/spoof/requests/PlayerRoutes.java +++ b/app/src/main/java/app/revanced/integrations/patches/spoof/requests/PlayerRoutes.java @@ -31,7 +31,7 @@ final class PlayerRoutes { JSONObject client = new JSONObject(); client.put("clientName", "ANDROID"); - client.put("clientVersion", "18.37.36"); + client.put("clientVersion", ReVancedUtils.getVersionName()); client.put("androidSdkVersion", 34); context.put("client", client);