File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Client/src/main/java/io/github/jwdeveloper/tiktok Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ public class TikTokLiveHttpClient implements LiveHttpClient
4747 private static final String TIKTOK_CHAT_URL = "https://tiktok.eulerstream.com/webcast/chat" ;
4848 private static final String TIKTOK_URL_WEB = "https://www.tiktok.com/" ;
4949 private static final String TIKTOK_URL_WEBCAST = "https://webcast.tiktok.com/webcast/" ;
50- public static final String TIKTOK_ROOM_GIFTS_URL = TIKTOK_URL_WEBCAST +"gift/list/" ;
50+ private static final String TIKTOK_ROOM_GIFTS_URL = TIKTOK_URL_WEBCAST +"gift/list/" ;
51+ private static final String TIKTOK_ROOM_INFO_URL = TIKTOK_URL_WEBCAST + "room/info" ;
5152 public static final int TIKTOK_AGE_RESTRICTED_CODE = 4003110 ;
5253
5354 private final HttpClientFactory httpFactory ;
@@ -141,8 +142,7 @@ public LiveData.Response fetchLiveData(LiveData.Request request) {
141142 }
142143
143144 public LiveData .Response getLiveData (LiveData .Request request ) {
144- var url = TIKTOK_URL_WEBCAST + "room/info" ;
145- var result = httpFactory .client (url )
145+ var result = httpFactory .client (TIKTOK_ROOM_INFO_URL )
146146 .withParam ("room_id" , request .getRoomId ())
147147 .withCookie ("sessionid" , clientSettings .getSessionId ())
148148 .withCookie ("tt-target-idc" , clientSettings .getTtTargetIdc ())
You can’t perform that action at this time.
0 commit comments