Update ApiConfig.java

pull/1/head
zhanglyt 3 years ago committed by GitHub
parent cdbf7234a4
commit 7354f280f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      app/src/main/java/com/github/tvbox/osc/api/ApiConfig.java

@ -55,6 +55,7 @@ public class ApiConfig {
private List<String> vipParseFlags;
private List<IJKCode> ijkCodes;
private String spider = null;
public String wallpaper = "";
private SourceBean emptyHome = new SourceBean();
@ -226,6 +227,8 @@ public class ApiConfig {
JsonObject infoJson = new Gson().fromJson(jsonStr, JsonObject.class);
// spider
spider = DefaultConfig.safeJsonString(infoJson, "spider", "");
// wallpaper
wallpaper = DefaultConfig.safeJsonString(infoJson, "wallpaper", "");
// 远端站点源
SourceBean firstSite = null;
for (JsonElement opt : infoJson.get("sites").getAsJsonArray()) {
@ -494,4 +497,4 @@ public class ApiConfig {
String fix = lanLink.substring(0, lanLink.indexOf("/file/") + 6);
return content.replace("clan://", fix);
}
}
}

Loading…
Cancel
Save