以前看到过迅雷文档结构:
http://xldoc.xl7.xunlei.com/0000000024/index.html
Thunder7
Thunder
MainWnd
Plugin
PluginPlatform
AddinManagerHelper
TaskInfoPanel
InsertUserTable
SetConfigCallback
xunlei
TaskFactory
CreateBTTask
CreateTask
CreateTask2
可以通过createtask添加任务,例如
# -*- coding=utf-8 -*-
import os
import time
from win32com.client import Dispatch
def addTasktoXunlei(down_url,course_infos):
flag = False
o = Dispatch("ThunderAgent.Agent.1")
if down_url:
course_path = os.getcwd()
try:
#AddTask("下载地址", "另存文件名", "保存目录","任务注释","引用地址","开始模式", "只从原始地址下载","从原始地址下载线程数")
o.AddTask(down_url, '', course_path, "", "", -1, 0, 5)
o.CommitTasks()
flag = True
except Exception:
print(Exception.message)
print(" AddTask is fail!")
return false
迅雷11有对应的文档说明吗?
全站热门讨论