summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2009-12-27 14:01:43 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2009-12-27 14:01:43 +0800
commit41c845b3bfe9d8c10cf12ef2796b735d89ca7be7 (patch)
tree50cd0ef371329fb0bd39b0ce77205ce5a6d27b26
parent96e973b1efd50fcec6e78e66f2baa19b9af30816 (diff)
pplist: fixed a offset by one bug
-rw-r--r--totem/plugin/ppslist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/totem/plugin/ppslist.py b/totem/plugin/ppslist.py
index 5aff637..b507801 100644
--- a/totem/plugin/ppslist.py
+++ b/totem/plugin/ppslist.py
@@ -412,7 +412,7 @@ class PPSList:
keyword = unicode(keyword, 'utf-8').encode('gb18030')
url = baseurl + urllib.quote(keyword) + '/'
if page_id > 0:
- url += "%d.html" % page_id
+ url += "%d.html" % (page_id + 1)
s = download(url, interval = 10)
#print keyword, url, gbk2utf8(s)
return s