Update Living.java

This commit is contained in:
leospring 2025-01-22 16:15:50 +08:00 committed by GitHub
parent 5a753108ba
commit e99bf0f8ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ public class Living extends Spider {
List<Vod> vodList = new ArrayList<>(); List<Vod> vodList = new ArrayList<>();
for (int i = 0; i < json.optJSONObject("data").optJSONArray("list").length(); i++) { for (int i = 0; i < json.optJSONObject("data").optJSONArray("list").length(); i++) {
JSONObject data = json.optJSONObject("data").optJSONArray("list").optJSONObject(i); JSONObject data = json.optJSONObject("data").optJSONArray("list").optJSONObject(i);
vodList.add(new Vod(split[0] + "_" + data.optString("roomId"), data.optString("title"), data.optString("cover"), data.optString("nickname"), data.optString("online"))); vodList.add(new Vod(split[0] + "_" + data.optString("roomId"), data.optString("title"), data.optString("cover"), data.optString("nickname")));
} }
return Result.string(vodList); return Result.string(vodList);
} }