Update LiveConfig.java

pull/123/head
FongMi 3 years ago
parent 428116ff4b
commit 775ef92d88
  1. 7
      app/src/main/java/com/fongmi/android/tv/api/LiveConfig.java

@ -66,9 +66,10 @@ public class LiveConfig {
} }
private String getTxt(String url) throws Exception { private String getTxt(String url) throws Exception {
if (url.startsWith("http")) return OKHttp.newCall(url).execute().body().string(); if (url.startsWith("file")) return FileUtil.read(url);
else if (url.startsWith("file")) return FileUtil.read(url); else if (url.startsWith("http")) return OKHttp.newCall(url).execute().body().string();
else return getTxt(new String(Base64.decode(url, Base64.DEFAULT))); else if (url.length() % 4 == 0) return getTxt(new String(Base64.decode(url, Base64.DEFAULT)));
else return "";
} }
private void parse(Live live, String txt) { private void parse(Live live, String txt) {

Loading…
Cancel
Save