我一直试图将下载管理器(特别是JDownloader和/或IDM)与我编写的下载文件脚本集成起来。
先决条件之一是,我需要能够将从URL找到的文件重命名为某个名称(脚本知道)。我发现很难用JDownloader的单击‘n’Click 2更改文件名。此外,与IDM的集成似乎是不可能的,因为它需要NPAPI,据我所知,它正在逐步淘汰.(另一种情况是:)
我目前使用的JDownloader是这弹琴,它通过它的一个服务向JDownloader添加了一个链接(注意: JDownloader必须在运行!)。
我遇到的问题是:
任何帮助都将不胜感激。提前谢谢。
HTML:
<!-- A link that does not work, type is direct video stream, works through manual links adding but not through Click'n'Load -->
<input type='button' id='testTitle' value='Test title' link='https://2.bp.blogspot.com/2p41_DNcufgUPAgtoT-DyGVK2rdyCz8PLfNAMhSegg=m18'>
<!-- A link that works, type is .exe from rapidshare.com -->
<input type='button' id='rapidShare' value='RapidShare' link='http://www.rapidshare.com/files/407970280/RapidShareManager2WindowsSetup.exe'>联署材料:
//The function that adds the link to JDownload
function JDownload(title, url){
$.post("http://127.0.0.1:9666/flash/add", {
urls:url,
fileName:title //This does not work...
});
}
//Buttons for convenience
$("input[type='button']").click(function(){
var title = $(this).attr("value");
var link = $(this).attr("link");
JDownload(title, link);
})发布于 2015-11-03 11:54:22
抱歉有这么含糊的问题..。我所寻求的答案(供参考)如下:
https://stackoverflow.com/questions/33459363
复制相似问题