This commit is contained in:
FongMi 2025-06-14 16:41:41 +08:00
parent 287fece193
commit f70c0ffd46
5 changed files with 11 additions and 5 deletions

View File

@ -42,10 +42,10 @@ android {
dependencies {
implementation 'com.squareup.okhttp3:okhttp:' + okhttpVersion
implementation 'com.github.thegrizzlylabs:sardine-android:0.9'
implementation 'wang.harlon.quickjs:wrapper-android:2.4.5'
implementation 'wang.harlon.quickjs:wrapper-android:3.2.0'
implementation 'com.google.code.gson:gson:2.11.0'
implementation 'cn.wanghaomiao:JsoupXpath:2.5.1'
implementation 'com.hierynomus:smbj:0.14.0'
implementation 'com.orhanobut:logger:2.2.0'
implementation 'org.jsoup:jsoup:1.18.3'
implementation 'org.jsoup:jsoup:1.19.1'
}

View File

@ -22,7 +22,12 @@ public class Data {
private Stat stat;
public static Data objectFrom(String str) {
return new Gson().fromJson(str, Data.class);
try {
Data data = new Gson().fromJson(str, Data.class);
return data == null ? new Data() : data;
} catch (Exception e) {
return new Data();
}
}
public List<Data> getData() {

View File

@ -26,9 +26,10 @@ public class MQiTV extends Spider {
}
@Override
public String liveContent(String url) {
public String liveContent(String url) throws Exception {
StringBuilder sb = new StringBuilder();
for (Config config : getConfigs()) {
if (config.getData().isEmpty()) continue;
sb.append(config.getName()).append(",#genre#").append("\n");
boolean hasPort = config.getUri().getPort() != -1;
for (Data item : config.getData()) {

Binary file not shown.

View File

@ -1 +1 @@
b3f144d34651b79384fc9e1ca4e3e310
77d675fab02d67f80e31fab7723eb15d