Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

fix issues #369

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lixian.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def has_logged_in(self):
return False
#print self.urlopen('http://dynamic.cloud.vip.xunlei.com/user_task?userid=%s&st=0' % id).read().decode('utf-8')
with self.attr(page_size=1):
url = 'http://dynamic.cloud.vip.xunlei.com/user_task?userid=%s&st=0' % id
url = 'http://dynamic.cloud.vip.xunlei.com/user_task?userid=%s&st=4' % id
#url = 'http://dynamic.lixian.vip.xunlei.com/login?cachetime=%d' % current_timestamp()
r = self.is_login_ok(self.urlread(url))
return r
Expand Down Expand Up @@ -625,6 +625,8 @@ def add_task(self, url):
cid, gcid, size_required, filename, goldbean_need, silverbean_need, is_full, random, ext = qcid
elif len(qcid) == 10:
cid, gcid, size_required, some_key, filename, goldbean_need, silverbean_need, is_full, random, ext = qcid
elif len(qcid) == 11:
cid, gcid, size_required, some_key, filename, goldbean_need, silverbean_need, is_full, random, ext, filetype = qcid
else:
raise NotImplementedError(qcid)
assert goldbean_need == 0
Expand Down