pull/586/head
FongMi 2 years ago
parent ada47db2c3
commit 167dc431cd
  1. 2
      app/src/mobile/java/com/fongmi/android/tv/bean/CastVideo.java
  2. 2
      app/src/mobile/java/com/fongmi/android/tv/ui/dialog/CastDialog.java

@ -14,7 +14,7 @@ public class CastVideo {
}
private CastVideo(String name, String url) {
if (url.startsWith("file")) url = Server.get().getAddress() + "/" + url.replace(Path.rootPath(), "");
if (url.startsWith("file")) url = Server.get().getAddress() + "/" + url.replace(Path.rootPath(), "").replace("://", "");
if (url.contains("127.0.0.1")) url = url.replace("127.0.0.1", Util.getIp());
this.name = name;
this.url = url;

@ -77,7 +77,7 @@ public class CastDialog extends BaseDialog implements DeviceAdapter.OnClickListe
String id = history.getVodId();
String fd = history.getVodId();
if (fd.startsWith("/")) fd = Server.get().getAddress() + "/file" + fd.replace(Path.rootPath(), "");
if (fd.startsWith("file")) fd = Server.get().getAddress() + "/" + fd.replace(Path.rootPath(), "");
if (fd.startsWith("file")) fd = Server.get().getAddress() + "/" + fd.replace(Path.rootPath(), "").replace("://", "");
if (fd.contains("127.0.0.1")) fd = fd.replace("127.0.0.1", Util.getIp());
body.add("history", history.toString().replace(id, fd));
return this;

Loading…
Cancel
Save