0

убран лишний код

This commit is contained in:
2017-01-08 17:30:04 +03:00
parent 9fe1b7f362
commit c737bd0f34

View File

@@ -155,21 +155,4 @@ public class Onlinelife implements KinoWarez {
}
return kinoPlay;
}
private String replaceToProxy(String json) {
JsonObject jsonObject = new Gson().fromJson(json, JsonObject.class);
JsonArray jsonArray = jsonObject.get("playlist").getAsJsonArray();
//jsonArray.get(0).getAsJsonObject().get("playlist").getAsJsonArray().get(0).getAsJsonObject().get("file").getAsString();
for (JsonElement elm1 : jsonArray) {
JsonArray arr1 = elm1.getAsJsonObject().get("playlist").getAsJsonArray();
for (JsonElement elm2 : arr1) {
JsonObject obj1 = elm2.getAsJsonObject();
obj1.addProperty("file", obj1.get("file").getAsString().replace("http://", "/proxy/onlinelife/"));
}
}
return new Gson().toJson(jsonObject);
}
}