This commit is contained in:
GH Action - Upstream Sync 2023-02-04 12:30:50 +00:00
commit 859df64001
2 changed files with 798 additions and 682 deletions

File diff suppressed because it is too large Load Diff

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("#"));
} }
} }