убран лишний код
This commit is contained in:
@@ -155,21 +155,4 @@ public class Onlinelife implements KinoWarez {
|
|||||||
}
|
}
|
||||||
return kinoPlay;
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user