首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 有Java API for sabnzbd

有Java API for sabnzbd

  • 资源大小:14.27 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

``` /* @author Adam Boulton * A demonstration of some of the features that the Java Sabnzbd API is capable of. */ package jsabnzbdapi; import com.ibot.sabnzbd.SabServer; import com.ibot.sabnzbd.Slot; import java.io.IOException; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { try { SabServer server = SabServer.connect("http://mySabServer:8081", "11119fb7dccc09e5cfbb5dac11021111"); String outputTemplate = "Status: %s " + "ETA: %s " + "Queue size: %s " + "Queue size remaining: %s " + "Speed: %s " + "Time left: %s " + "Uptime: %s "; String output = String.format(outp
VIP VIP
0.197398s