Skip to content

Commit

Permalink
merge from shinohane:Use new api to get task list
Browse files Browse the repository at this point in the history
  • Loading branch information
chliny committed Dec 6, 2013
1 parent 58e7f5e commit 0850c8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xfdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ def __tohumansize(self,size):
return "%.1f%s"%(size,_dw)

def __getrawlist(self):
urlv = 'http://lixian.qq.com/handler/lixian/get_lixian_list.php'
res = self.__request(urlv,{})
urlv = 'http://lixian.qq.com/handler/lixian/get_lixian_items.php'
res = self.__request(urlv, {'page': 0, 'limit': 500})
res = json.JSONDecoder().decode(res)
return res

Expand Down Expand Up @@ -258,7 +258,7 @@ def __getlist(self):
for num in range(len(res['data'])):
index=res['data'][num]
self.filename.append(index['file_name'].encode("u8"))
self.filehash.append(index['code'])
self.filehash.append(index['hash'])
size=index['file_size']
self.filemid.append(index['mid'])
if size==0:
Expand Down

0 comments on commit 0850c8c

Please # to comment.