summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2010-01-22 01:25:39 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2010-01-22 01:25:39 +0800
commitb7f2340e8b09d274bde12d579260ad6a612081a3 (patch)
tree08b3c82b238597ace03f835325758aeee85e0849
parent19393718b3ebfb43fa928f92ac92d59f48d7abfe (diff)
ppslist: fixed movie play list fetching
-rw-r--r--totem/plugin/ppslist.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/totem/plugin/ppslist.py b/totem/plugin/ppslist.py
index 7a7769c..248d44d 100644
--- a/totem/plugin/ppslist.py
+++ b/totem/plugin/ppslist.py
@@ -435,7 +435,7 @@ def parseMoviePlayList(s):
maxpage = int(refs[-1].contents[-1])
spans = pagenav[0].findAll('span')
curpage = int(spans[0].contents[-1])
- return (files, max(maxpage, curpage))
+ return (files, max(maxpage, curpage) + 1)
def getMovieFileList(movie):
s = download(movie.playerurl)
@@ -518,7 +518,7 @@ class PPSList:
def fetchMoviePlayList(self, cls, movie, page_id = 0):
if not movie.baseurl:
return None
- s = download(movie.baseurl + '/%s.html')
+ s = download(movie.baseurl + '/%d.html' % page_id)
return s
def parseMoviePlayList(self, cls, movie, s, page_id = 0):