diff --git a/src/main/java/net/nicovrc/dev/TCPServer.java b/src/main/java/net/nicovrc/dev/TCPServer.java index 4e3f4a8..a583d13 100644 --- a/src/main/java/net/nicovrc/dev/TCPServer.java +++ b/src/main/java/net/nicovrc/dev/TCPServer.java @@ -70,6 +70,14 @@ public void run() { String videoUrl = ""; String audioUrl = ""; + String BaseURL = json.getAsJsonObject().get("BaseURL").getAsString(); + //System.out.println(BaseURL); + videoUrl = json.getAsJsonObject().get("VideoURL").getAsString().replaceAll("\\.\\./\\.\\./\\.\\./", BaseURL+"/video/"); + //System.out.println(videoUrl); + String[] baseURL = BaseURL.split("/"); + audioUrl = json.getAsJsonObject().get("AudioURL").getAsString().replaceAll("\\.\\./\\.\\./\\.\\./\\.\\./", baseURL[0]+"//"+baseURL[2]+"/"+baseURL[3]+"/"+baseURL[4]+"/"+baseURL[5]+"/"); + //System.out.println(audioUrl); + String videoId = new Date().getTime() + "_" + UUID.randomUUID().toString().split("-")[0]; if (no_vrc){