Code Monkey home page Code Monkey logo

lixian.xunlei's People

Contributors

binux avatar jat001 avatar kikyous avatar mozillazg avatar s2marine avatar ubunttua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lixian.xunlei's Issues

Intergration with pythunder

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.

‘task will never expired’ in README

迅雷离线弹出提示:永久保存即将下线,请将您永久保存的文件尽快取回本地!

看来是不打算提供永久存储服务了,建议还是做一个机制,让网站的资源跟服务器同时间过期删除。

另外,昨天离线下载也没速度。。

请帮我看看这个错误是什么原因的~

[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

某些情况下获取任务列表可能会漏

最近我在本机上跑这个项目,发现列表出来的任务不全。
阅读代码后发现,在get_task_list的时候,按“创建时间小于搜索起始任务的创建时间,并且id小于搜索起始任务的id”的逻辑进行。
但是我的迅雷帐号里面,不是所有任务都按创建时间和任务id绝对递减的。

例如下图,某一次getnext的时候,最后取到了“43221227582 - Shinning Heart”这个任务。
下一次getnext就会以这个任务为起始查询,这次的查询中,图内圆圈部分的任务id大于43221227582 ,因此全被剔除,显示不到主页上。

pic

迅雷离线的api怎么查的?

看了lz很多对离线API的调用,不知道是在什么地方查的呢,我google了半天,官网都翻遍了,还是木有找到相关的文档.....

Download link broken after reboot

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

lixian_api.py 获取任务时编码出错

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

lixian_api.py 不能登录了,验证码过不去

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']

lixian_api.py的delete_task不能用了~

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

Mobile device support

I have made an APK that implements 2 things:

  1. Adjust CSS to make it readable on Android device
  2. Use VLC for video playback/preview
    成功播放过一些新番。
    http://115.com/file/e71kqgcm
    估计手机太差会悲剧,代码什么的回家再贴吧。

最近403很多怎么回事啊,北京联通。

登录调用失败

gdriveid = re.search(r'id="cok" value="([^"]+)"', r.content).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
应该是迅雷登录页面返回结果更改了

Remote APIs?

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有问题还是其它?

thunder link support

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)

而管理员添加相同任务时则不会报错。
管理员添加任务后,普通用户提交相同任务,无异常。

无法发布资源

现在无法发布服务器未索引资源,是需要特殊权限吗?

另外,现在需要安装用户脚本的意义何在? 之前也无需也能正常下载啊

问个关于vod_redirect_play的问题

猜测返回的地址需要的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

requests 1.1.0下会报错

if r.error or r.status_code != 200:
AttributeError: 'Response' object has no attribute 'error'

验证码无限错误/Google登陆异常?

Hi there,

我试着部署了一下这套源码。但是有点问题:

  1. 我设置了oauth2,但是登陆后没有设置cookie,还是没有登陆?
  2. 把游客为admin打开。

添加任务时,提示验证码错误,无论如何刷新都提示错误。

历史上好像添加任务成功过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

希望能添加YAAW下载的支持。还有{系统管理}出错.

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也是你开发的。。为什么没有支持呢。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.