Change rule for m3u detect

pull/210/head
FongMi 2 years ago
parent d36100c063
commit 899f10b9f0
  1. 2
      app/src/main/java/com/fongmi/android/tv/api/LiveParser.java

@ -39,7 +39,7 @@ public class LiveParser {
public static void text(Live live, String text) {
int number = 0;
if (live.getGroups().size() > 0) return;
if (text.trim().startsWith("#EXTM3U")) m3u(live, text);
if (text.split("#EXTM3U").length > 1) m3u(live, text);
else txt(live, text);
for (Group group : live.getGroups()) {
for (Channel channel : group.getChannel()) {

Loading…
Cancel
Save