fix(Spoof streaming data): Specify language code only for clients that cannot log in

This commit is contained in:
inotia00
2024-12-31 21:33:23 +09:00
parent 6b0dee8529
commit b171281ec5

View File

@ -53,7 +53,9 @@ public final class PlayerRoutes {
client.put("deviceMake", "Apple");
client.put("osName", "iOS");
}
client.put("hl", LOCALE_LANGUAGE);
if (!clientType.canLogin) {
client.put("hl", LOCALE_LANGUAGE);
}
JSONObject context = new JSONObject();
context.put("client", client);