|
|
|
@ -212,8 +212,9 @@ public class SiteViewModel extends ViewModel { |
|
|
|
public void action(String key, String action) { |
|
|
|
public void action(String key, String action) { |
|
|
|
execute(this.action, () -> { |
|
|
|
execute(this.action, () -> { |
|
|
|
Site site = VodConfig.get().getSite(key); |
|
|
|
Site site = VodConfig.get().getSite(key); |
|
|
|
if (site.getType() != 3) return Result.empty(); |
|
|
|
if (site.getType() == 3) return Result.fromJson(site.recent().spider().action(action)); |
|
|
|
return Result.fromJson(site.recent().spider().action(action)); |
|
|
|
if (site.getType() == 4) return Result.fromJson(OkHttp.string(action)); |
|
|
|
|
|
|
|
return Result.empty(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|