Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kanasaki15 committed May 26, 2024
1 parent 94a903f commit 7a81942
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/net/nicovrc/dev/TCPServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 7a81942

Please sign in to comment.