We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d09c90e commit 4297af1Copy full SHA for 4297af1
Client/src/main/java/io/github/jwdeveloper/tiktok/http/mappers/LiveDataMapper.java
@@ -65,7 +65,7 @@ public LiveData.Response map(String json) {
65
default -> LiveData.LiveStatus.HostNotFound;
66
};
67
response.setLiveStatus(statusValue);
68
- } else if (data.has("prompts") && jsonObject.has("status_code") && data.get("prompts").getAsString().isEmpty() && jsonObject.get("status_code").isJsonPrimitive()) {
+ } else if (data.has("prompts") && data.get("prompts").getAsString().isEmpty() && jsonObject.has("status_code")) {
69
response.setAgeRestricted(jsonObject.get("status_code").getAsInt() == TikTokLiveHttpClient.TIKTOK_AGE_RESTRICTED_CODE);
70
} else {
71
response.setLiveStatus(LiveData.LiveStatus.HostNotFound);
0 commit comments