|
|
|
|
@ -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); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|