Permalink
Browse files

fix for requrests 0.13

  • Loading branch information...
Binux
Binux committed Jul 8, 2012
1 parent c85426a commit 840b70d7a08fd7ec43b9cfa78f97cf5290c4f6ac
Showing with 2 additions and 2 deletions.
  1. +2 −2 libs/lixian_api.py
View
@@ -411,15 +411,15 @@ def add(self, url, title=None):
FILL_BT_LIST = "http://dynamic.cloud.vip.xunlei.com/interface/fill_bt_list"
def _get_bt_list(self, tid, cid):
+ self.session.cookies["pagenum"] = str(2000)
r = self.session.get(self.FILL_BT_LIST, params=dict(
callback="fill_bt_list",
tid = tid,
infoid = cid,
g_net = 1,
p = 1,
uid = self.uid,
- noCacheIE = self._now)
- , cookies=dict(pagenum=2000))
+ noCacheIE = self._now))
if r.error or r.status_code != 200:
r.raise_for_status()
function, args = parser_js_function_call(r.content)

0 comments on commit 840b70d

Please sign in to comment.