iambus / xunlei-lixian

迅雷离线下载脚本
Other
1.97k stars 378 forks source link

貌似16级非VIP不能下载 #85

Open AltairChan opened 12 years ago

AltairChan commented 12 years ago

能添加和查看任务,不能下载,如果打了会员补丁的迅雷7就可以直接取回,不知道是不是跟官方改版有关,16级免费用户被特殊对待了。你看看麽 ^_^

我对比了一下链接里不同的地方(尾部) 16级免费用户: &ff=1&co= VIP: &ff=0&co= 16级免费+会员补丁: &from=1&ff=0&co=

iambus commented 12 years ago

不能下载的出错信息是什么?

AltairChan commented 12 years ago

» ./lixian_cli.py download 61997302281 Downloading Linux指令速查手册_CHS[www.TopSage.com].zip ... --2012-05-01 18:29:02-- http://gdl.lixian.vip.xunlei.com/download?fid=oz7O5IVXWap5YlU/xMSMi/hXFMyCdJUCAAAAAFPLY+WHUqHQcstBdpQ003CFf9hU&mid=666&threshold=150&tid=A21F7540D8A922CAA049A8D6DE471A29&srcid=4&verno=1&g=53CB63E58752A1D072CB41769434D370857FD854&scn=t12&i=53CB63E58752A1D072CB41769434D370857FD854&t=2&ui=122188546&ti=61997302281&s=43349122&m=0&n=012D588A2A78D6B8C18FFA3DEDE9CAD6B2806EA717535B7777161FB03070536167041F87306D5D2E7A0841E45F00000000&ff=1&co=BCA6936DBBB13F1EC9D2C7BA631694AC&cm=1 正在解析主机 gdl.lixian.vip.xunlei.com... 221.238.24.50, 221.238.24.75 正在连接 gdl.lixian.vip.xunlei.com|221.238.24.50|:80... 已连接。 已发出 HTTP 请求,正在等待回应... 302 Found 位置:http://vod20.t12.lixian.vip.xunlei.com/download?fid=oz7O5IVXWap5YlU/xMSMi/hXFMyCdJUCAAAAAFPLY+WHUqHQcstBdpQ003CFf9hU&mid=666&threshold=150&tid=A21F7540D8A922CAA049A8D6DE471A29&srcid=4&verno=1&g=53CB63E58752A1D072CB41769434D370857FD854&scn=t12&i=53CB63E58752A1D072CB41769434D370857FD854&t=2&ui=122188546&ti=61997302281&s=43349122&m=0&n=012D588A2A78D6B8C18FFA3DEDE9CAD6B2806EA717535B7777161FB03070536167041F87306D5D2E7A0841E45F00000000&ff=1&co=BCA6936DBBB13F1EC9D2C7BA631694AC&cm=1&ts=1335868280 [跟随至新的 URL] --2012-05-01 18:29:02-- http://vod20.t12.lixian.vip.xunlei.com/download?fid=oz7O5IVXWap5YlU/xMSMi/hXFMyCdJUCAAAAAFPLY+WHUqHQcstBdpQ003CFf9hU&mid=666&threshold=150&tid=A21F7540D8A922CAA049A8D6DE471A29&srcid=4&verno=1&g=53CB63E58752A1D072CB41769434D370857FD854&scn=t12&i=53CB63E58752A1D072CB41769434D370857FD854&t=2&ui=122188546&ti=61997302281&s=43349122&m=0&n=012D588A2A78D6B8C18FFA3DEDE9CAD6B2806EA717535B7777161FB03070536167041F87306D5D2E7A0841E45F00000000&ff=1&co=BCA6936DBBB13F1EC9D2C7BA631694AC&cm=1&ts=1335868280 正在解析主机 vod20.t12.lixian.vip.xunlei.com... 114.80.188.39 正在连接 vod20.t12.lixian.vip.xunlei.com|114.80.188.39|:80... 已连接。 已发出 HTTP 请求,正在等待回应... 没有接收到数据。 重试中。

--2012-05-01 18:29:14-- (尝试次数: 2) http://vod20.t12.lixian.vip.xunlei.com/download?fid=oz7O5IVXWap5YlU/xMSMi/hXFMyCdJUCAAAAAFPLY+WHUqHQcstBdpQ003CFf9hU&mid=666&threshold=150&tid=A21F7540D8A922CAA049A8D6DE471A29&srcid=4&verno=1&g=53CB63E58752A1D072CB41769434D370857FD854&scn=t12&i=53CB63E58752A1D072CB41769434D370857FD854&t=2&ui=122188546&ti=61997302281&s=43349122&m=0&n=012D588A2A78D6B8C18FFA3DEDE9CAD6B2806EA717535B7777161FB03070536167041F87306D5D2E7A0841E45F00000000&ff=1&co=BCA6936DBBB13F1EC9D2C7BA631694AC&cm=1&ts=1335868280 正在连接 vod20.t12.lixian.vip.xunlei.com|114.80.188.39|:80... 已连接。 已发出 HTTP 请求,正在等待回应... 404 Not Found 2012-05-01 18:29:20 错误 404:Not Found。

Traceback (most recent call last): File "./lixian_cli.py", line 743, in execute_command() File "./lixian_cli.py", line 740, in execute_command commandscommand File "./lixian_cli.py", line 430, in download_task download_multiple_tasks(client, download, tasks, download_args) File "./lixian_cli.py", line 287, in download_multiple_tasks download_single_task(client, download, task, options) File "./lixian_cli.py", line 280, in download_single_task download2(client, download_url, output_path, task) File "./lixian_cli.py", line 206, in download2 download1(client, url, path, size) File "./lixian_cli.py", line 188, in download1 download(client, url, path) File "./lixian_cli.py", line 107, in wget_download raise Exception('wget exited abnormaly') Exception: wget exited abnormaly

iambus commented 12 years ago

如果从网页登录,手动下载任务,是否能正常下载?

AltairChan commented 12 years ago

之前网页版要数秒300才能离线下载,现在干脆不数秒走高速通道且不能离线了,但迅雷7打个破解补丁就能直接离线(必须16级)

iambus commented 12 years ago

怎么close了?我手头没环境。你可以自己先试下修改代码管不管用:

diff --git a/lixian.py b/lixian.py
index fd866a4..a69632c 100644
--- a/lixian.py
+++ b/lixian.py
@@ -458,7 +458,7 @@ def parse_task(html):
            'status_text': {'0':'waiting', '1':'downloading', '2':'completed', '3':'failed', '5':'pending'}[mini_info['d_status']],
            'size': int(mini_info['ysfilesize']),
            'original_url': mini_info['f_url'],
-           'xunlei_url': mini_info['dl_url'],
+           'xunlei_url': mini_info['dl_url'].replace('&ff=1&', '&from=1&ff=0&'),
            'bt_hash': mini_info['dcid'],
            'dcid': mini_info['dcid'],
            'gcid': parse_gcid(mini_info['dl_url']),
@@ -491,7 +491,7 @@ def parse_bt_list(js):
            'status_text': {'0':'waiting', '1':'downloading', '2':'completed', '3':'failed'}[record['download_status']],
            'size': int(record['filesize']),
            'original_url': record['url'],
-           'xunlei_url': record['downurl'],
+           'xunlei_url': record['downurl'].replace('&ff=1&', '&from=1&ff=0&'),
            'dcid': record['cid'],
            'gcid': parse_gcid(record['downurl']),
            'speed': '',
AltairChan commented 12 years ago

我手抖了 ^_^!!

2012/5/1 iambus < reply@reply.github.com

怎么close了?我手头没环境。你可以自己先试下修改代码管不管用:

   diff --git a/lixian.py b/lixian.py
   index fd866a4..a69632c 100644
   --- a/lixian.py
   +++ b/lixian.py
   @@ -458,7 +458,7 @@ def parse_task(html):
                           'status_text': {'0':'waiting',

'1':'downloading', '2':'completed', '3':'failed', '5':'pending'}[mini_info['d_status']], 'size': int(mini_info['ysfilesize']), 'original_url': mini_info['f_url'],

  • 'xunlei_url': mini_info['dl_url'],
  • 'xunlei_url': mini_info['dl_url'].replace('&ff=1&', '&from=1&ff=0&'), 'bt_hash': mini_info['dcid'], 'dcid': mini_info['dcid'], 'gcid': parse_gcid(mini_info['dl_url']), @@ -491,7 +491,7 @@ def parse_bt_list(js): 'status_text': {'0':'waiting', '1':'downloading', '2':'completed', '3':'failed'}[record['download_status']], 'size': int(record['filesize']), 'original_url': record['url'],
  • 'xunlei_url': record['downurl'],
  • 'xunlei_url': record['downurl'].replace('&ff=1&', '&from=1&ff=0&'), 'dcid': record['cid'], 'gcid': parse_gcid(record['downurl']), 'speed': '',

Reply to this email directly or view it on GitHub: https://github.com/iambus/xunlei-lixian/issues/85#issuecomment-5437303

AltairChan commented 12 years ago

还是那样 --,我之前已经有试过修改链接,可能是vip和免费用户的cookies生成有区别的吧,不知道能不能伪装成vip,像打了破解补丁那样 我的水平是helloworld级别 ** 您先忙吧 我不常用迅雷 不急!