binux / lixian.xunlei Goto Github PK
View Code? Open in Web Editor NEWxunlei lixian api & a website project base on it & a plugin for flexget
Home Page: http://loli.lu/
xunlei lixian api & a website project base on it & a plugin for flexget
Home Page: http://loli.lu/
Lixian.xunlei is great, but it isn't as powerful as Thunder client: we can't get mirrors for URIs automatically.
There is a Python tool to search mirrors using Thunder protocol, written by cocobear: pythunder
If you intergrate this into lixian.xunlei, and when using download managers which support multiple mirrors, such as aria2, it will gain more power.
请问,怎么用呢?我怎么都运行不了,老是出错...
/share/1234
file select and export for unfinished tasks.
迅雷离线弹出提示:永久保存即将下线,请将您永久保存的文件尽快取回本地!
看来是不打算提供永久存储服务了,建议还是做一个机制,让网站的资源跟服务器同时间过期删除。
另外,昨天离线下载也没速度。。
[I 120608 12:35:02 connectionpool:190] Starting new HTTP connection (1): login.x
unlei.com
Traceback (most recent call last):
File "main.py", line 100, in
main()
File "main.py", line 93, in main
http_server = HTTPServer(Application(), xheaders=True)
File "main.py", line 76, in init
password = options.password
File "c:\lx\libs\db_task_manager.py", line 56, in init
self.islogin = self._xunlei.login(self.username, self.password)
File "c:\lx\libs\lixian_api.py", line 71, in login
p = hex_md5(hex_md5(hex_md5(password))+verifycode.upper()),
File "c:\lx\libs\lixian_api.py", line 24, in hex_md5
return md5(string).hexdigest()
TypeError: must be string or buffer, not None
把lixian.xunlei架在树莓PI上玩,发现和这里描述的情况一样
binux/ThunderLixianExporter#20
求修改下,,,
看了lz很多对离线API的调用,不知道是在什么地方查的呢,我google了半天,官网都翻遍了,还是木有找到相关的文档.....
I'm not sure if anyone has seen this issue before. All the download links were broken after I issued a server reboot. The only workaround I found was to delete the old databse file task_files.db and let it generate a new one. Please let me know what kind of information I need to provide in order to trace this issue (Sorry I have no experience with python before). I'm using python-daemon 1.5.5 to run the site. Thanks
o.get_task_list()
Traceback (most recent call last):
File "", line 1, in
File "lixian_api.py", line 142, in get_task_list
raw_data = self._get_task_list(pagenum, st)
File "lixian_api.py", line 132, in _get_task_list
rwbox = re.search(r'<div class="rwbox".*', r.content.decode("utf-8"), re.S).group()
File "E:\Python27\lib\encodings\utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x82 in position 32775: invalid start byte
迅雷离线现在可以查看压缩包内的文件了, 能不能加入这个功能?
G:\My code\Python\Lixian\v1.9>python
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
import lixian_api
o = lixian_api.LiXianAPI()
o.login('244647906', '*******')
Traceback (most recent call last):
File "", line 1, in
File "lixian_api.py", line 68, in login
verifycode = self._get_verifycode(username)
File "lixian_api.py", line 100, in _get_verifycode
assert len(verifycode_tmp) == 2, verifycode_tmp
AssertionError: ['1']
import lixian_api
o = lixian_api.LiXianAPI()
o.login('**********', '*****')
True
taskid = str(o.get_task_list()[0]['task_id'])
o.delete_task(taskid)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "lixian_api.py", line 480, in delete_task
assert args
AssertionError
print taskid
149888461315
I have made an APK that implements 2 things:
最近403很多怎么回事啊,北京联通。
web版是有这个功能的,
还有上传种子的时候,任务成功了能不能,能不能勾选任务,然后再生成对应的链接啊
gdriveid = re.search(r'id="cok" value="([^"]+)"', r.content).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
应该是迅雷登录页面返回结果更改了
可以通过 http://dynamic.cloud.vip.xunlei.com/interface/showtask_unfresh 直接获取json
具体在task.js里
因为使用的不是 py, 但是需要使用迅雷离线分享资源, 如果可以的话, 希望能够共享一下谢谢咯~
Is there any plan to add some remote APIs, via XML-RPC, for example, to get URIs and cookies remotely, so we can use them in desktop applications?
I think this will get lixian.xunlei better intergrated with download managers.
拿到已经下载完文件的lixian_url后, 通过session.get将文件下载到本地,响应400,是cookie有问题还是其它?
这个要什么网站空间支持的啊 sae gae这两支持不
另外请问有没有默认的管理员用户?
如果想要删除一个任务,如何处理?
thunder://QUFmdHA6Ly82djo2dkBmdHAua2FuNjYuY29tOjQxNjUvob42drXn07B3d3cuZHkxMzEuY29tob/Psr7n1q7N9UhEufrT79bQ19YxMjgwuN/H5S5ybXZiWlo=
非管理员添加部分任务时会报以下错误:
Traceback (most recent call last):
File ".../python2.7/site-packages/tornado/web.py", line 985, in wrapper
return callback(_args, *_kwargs)
File ".../libs/util.py", line 62, in on_pipe_result
raise ret
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)
而管理员添加相同任务时则不会报错。
管理员添加任务后,普通用户提交相同任务,无异常。
现在无法发布服务器未索引资源,是需要特殊权限吗?
另外,现在需要安装用户脚本的意义何在? 之前也无需也能正常下载啊
猜测返回的地址需要的cookie为sessionid, isvip, userid.
写入cookie后chrome, firefox都能正常播放, 但是ie9却不行, 先超时, 再刷新就不是会员了
发现是http://vod.xunlei.com/js/player.js文件里246行的:
"getJSONP(DYSERVER+"interface/getXlCookie?t="+new Date().getTime(),'XL_CLOUD_FX_INSTANCEqueryXlCookieBack',function(r){"
这句出了问题, getXlCookie每次第一次请求回来的结果都是"({"result":0})"而不是那三个cookie组成的字典
自己在本地模拟测试过, 把t参数去掉, 先在IE中打开http://dynamic.vod.lixian.xunlei.com/interface/getXlCookie?&jsonp=XL_CLOUD_FX_INSTANCEqueryXlCookieBack, 再开iPlay.html就能正常通过验证
手动在vod.xunlei.com登录是可以的正常播放的, getXlCookie也能正常返回
然后......然后我就不知道怎么办了
实在不好意思
requests 1.1.0下会报错
if r.error or r.status_code != 200:
AttributeError: 'Response' object has no attribute 'error'
Hi there,
我试着部署了一下这套源码。但是有点问题:
添加任务时,提示验证码错误,无论如何刷新都提示错误。
历史上好像添加任务成功过1次,然后就无限失败了。
这是为什么呢。。。。。。
最近一个月起,无法添加任何BT任务,提示“获取任务信息失败”。HTTP任务可正常添加。
Terminal没有特别的提示,下面是相关的output:
[I 150701 19:01:26 connectionpool:238] Resetting dropped connection: dynamic.cloud.vip.xunlei.com
[I 150701 19:01:32 web:1855] 200 POST /add_task_anonymous (127.0.0.1) 6493.71ms
[I 150701 19:06:27 web:1855] 200 GET /add_task (127.0.0.1) 3.11ms
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado-2.3-py2.7.egg/tornado/web.py", line 1021, in _execute
getattr(self, self.request.method.lower())(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado-2.3-py2.7.egg/tornado/web.py", line 1794, in wrapper
return method(self, _args, *_kwargs)
File "/home/user/wwwroot/xunlei/handlers/manager.py", line 24, in get
self.render("manager.html", message=message)
File "/usr/local/lib/python2.7/dist-packages/tornado-2.3-py2.7.egg/tornado/web.py", line 498, in render
html = self.render_string(template_name, **kwargs)
File "/home/user/wwwroot/xunlei/handlers/base.py", line 26, in render_string
return super(BaseHandler, self).render_string(template_name, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado-2.3-py2.7.egg/tornado/web.py", line 615, in render_string
return t.generate(**args)
File "/usr/local/lib/python2.7/dist-packages/tornado-2.3-py2.7.egg/tornado/template.py", line 254, in generate
return execute()
File "manager_html.generated.py", line 75, in _execute
_tmp = handler.task_manager.last_task_id # manager.html:27 (via base.html:29)
AttributeError: 'DBTaskManager' object has no attribute 'last_task_id'
Debian wheezy,python2.7
YAAW也是你开发的。。为什么没有支持呢。
错误信息:获取任务信息失败
P.S. 想看源码没看懂……
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.