pull/586/head
FongMi 1 year ago
parent 6c67967ab1
commit 3ce8e649a7
  1. 12
      app/src/main/java/com/fongmi/android/tv/bean/Channel.java

@ -319,14 +319,14 @@ public class Channel {
}
public void live(Live live) {
if (live.getUa().length() > 0 && getUa().isEmpty()) setUa(live.getUa());
if (!live.getUa().isEmpty() && getUa().isEmpty()) setUa(live.getUa());
if (live.getHeader() != null && getHeader() == null) setHeader(live.getHeader());
if (live.getClick().length() > 0 && getClick().isEmpty()) setClick(live.getClick());
if (live.getOrigin().length() > 0 && getOrigin().isEmpty()) setOrigin(live.getOrigin());
if (!live.getClick().isEmpty() && getClick().isEmpty()) setClick(live.getClick());
if (!live.getOrigin().isEmpty() && getOrigin().isEmpty()) setOrigin(live.getOrigin());
if (!live.getCatchup().isEmpty() && getCatchup().isEmpty()) setCatchup(live.getCatchup());
if (live.getReferer().length() > 0 && getReferer().isEmpty()) setReferer(live.getReferer());
if (!getEpg().startsWith("http") && live.getEpg().contains("{")) setEpg(live.getEpg().replace("{name}", getTvgName()).replace("{epg}", getEpg()));
if (!getLogo().startsWith("http") && live.getLogo().contains("{")) setLogo(live.getLogo().replace("{name}", getTvgName()).replace("{logo}", getLogo()));
if (!live.getReferer().isEmpty() && getReferer().isEmpty()) setReferer(live.getReferer());
if (live.getEpg().contains("{") && !getEpg().isEmpty() && !getEpg().startsWith("http")) setEpg(live.getEpg().replace("{name}", getTvgName()).replace("{epg}", getEpg()));
if (live.getLogo().contains("{") && !getLogo().isEmpty() && !getLogo().startsWith("http")) setLogo(live.getLogo().replace("{name}", getTvgName()).replace("{logo}", getLogo()));
}
public void setLine(String line) {

Loading…
Cancel
Save