pull/590/head
FongMi 7 months ago
parent 78c365be79
commit 01ed0c4960
  1. 11
      app/src/main/java/com/fongmi/android/tv/player/extractor/TVBus.java

@ -47,17 +47,18 @@ public class TVBus implements Source.Extractor, Listener {
return check();
}
private void change() throws Exception {
Setting.putBootLive(true);
App.post(() -> System.exit(0), 100);
throw new ExtractException(ResUtil.getString(R.string.error_play_url));
}
private String check() throws Exception {
if (hls == null) return "";
if (!hls.startsWith("-")) return hls;
throw new ExtractException(ResUtil.getString(R.string.error_play_code, hls));
}
private void change() {
Setting.putBootLive(true);
App.post(() -> System.exit(0), 250);
}
@Override
public void stop() {
if (tvcore != null) tvcore.stop();

Loading…
Cancel
Save