好吧,謝謝你的建議。這裏是解決方案(也許it'ill是可用的人):
// CAPTCHA
// class: CaptchaDialogQueueEntry.java
// method: viaGui()
// This method handle all captcha requests and you can read it in this way:
captchaController.getCaptchaFile().toURI().toURL().toString() // this is the path of captcha file on your computer, you can read this and do anything
檢查鏈接
您必須添加鏈接LinkCollector之後,你可以添加文件就下載列表。下面是代碼:
LinkCollector
.getInstance()
.addCrawlerJob(
new LinkCollectingJob(
"http://bitshare.com/files/vddhv6sd/2002-Habakuk---Muzyka--slowa--liczba--kolor.rar.html"));
之後,你可以添加所有添加的文件下載列表:
for (int i = 0, c = LinkCollector.getInstance().getPackages()
.size(); i < c; i++) {
if (LinkCollector.getInstance().getPackages().get(i)
.getChildren().get(0).getSize() > 0) {
DownloadController.getInstance().addAll(
LinkCollector.getInstance().convert(
LinkCollector.getInstance().getPackages()
.get(i).getChildren(), true));
}
}
一切正常靜態所以你可以創建自己的插件,任何地點實現它。
我覺得你最好在JD-Developer頁面查看,因爲它的應用程序特定http://jdownloader.org/knowledge/wiki/development/get-started – dngfng