Update live

This commit is contained in:
FongMi 2023-02-04 17:29:47 +08:00
parent 9d767cd500
commit 6827b60d4a
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ public class Run {
private void start(String text) throws IOException { private void start(String text) throws IOException {
//parseTxt(Util.getFile(getClass(), "live.txt")); //parseTxt(Util.getFile(getClass(), "live.txt"));
parse(Util.call(text)); parse(Util.call(text));
writeFile(); writeFile();
} }
@ -44,6 +44,7 @@ public class Run {
Group group = groups.get(groups.size() - 1); Group group = groups.get(groups.size() - 1);
String name = split[0]; String name = split[0];
String url = split[1].trim(); String url = split[1].trim();
if (url.startsWith("http://txtest")) url = url.replace("http://txtest", "http://121.51.249.6/txtest");
group.find(Channel.create().name(name).epg(name)).addUrls(url.split("#")); group.find(Channel.create().name(name).epg(name)).addUrls(url.split("#"));
} }
} }