mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 16:59:39 -05:00
Fix clientParams and send cookies when present and not null to specific requests for 18+ livestreams.
This commit is contained in:
@@ -112,6 +112,7 @@ public class TikTokLiveHttpClient implements LiveHttpClient
|
||||
var result = httpFactory.client(url)
|
||||
.withParam("uniqueId", request.getUserName())
|
||||
.withParam("sourceType", "54") //MAGIC NUMBER, WHAT 54 means?
|
||||
.withCookie("sessionid", clientSettings.getSessionId())
|
||||
.build()
|
||||
.toJsonResponse();
|
||||
|
||||
@@ -139,6 +140,7 @@ public class TikTokLiveHttpClient implements LiveHttpClient
|
||||
var url = TIKTOK_URL_WEBCAST + "room/info";
|
||||
var result = httpFactory.client(url)
|
||||
.withParam("room_id", request.getRoomId())
|
||||
.withCookie("sessionid", clientSettings.getSessionId())
|
||||
.build()
|
||||
.toJsonResponse();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user