diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2010-01-23 23:43:31 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2010-02-09 00:08:20 +0800 |
commit | 15fa9cf51749b7a8e36b0b00f01c70075dc4793e (patch) | |
tree | 9e6e93c38c0bf45ce1415aac8e3007fff0d22ab5 | |
parent | 1ed623b0ddb2856cb361b4404dc678a0d1ef91d2 (diff) |
ppstream: fixed play list navigating
-rw-r--r-- | totem/plugin/ppstream.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/totem/plugin/ppstream.py b/totem/plugin/ppstream.py index de9486d..a9ab651 100644 --- a/totem/plugin/ppstream.py +++ b/totem/plugin/ppstream.py @@ -1086,9 +1086,10 @@ class PPStream (totem.Plugin): def __fetch_files(self, dummy, movie, page, show, count): cls = movie.parent assert (cls is not None) + #print movie, page, movie.baseurl if not movie.baseurl: return self.ppslist.fetchMovie(cls, movie) - return self.ppslist.fetchMoviePlayList(cls, movie, self.files_page) + return self.ppslist.fetchMoviePlayList(cls, movie, page) def fetch_files (self, movie, page = 0, show = True): self.download_files (self.on_files_fetched, movie, @@ -1111,6 +1112,9 @@ class PPStream (totem.Plugin): if not files and not movie.baseurl: url = self.ppslist.parseMoviePlayListUrl(movie.parent, movie, res) + assert(curpage == 0) + ### the default page + curpage = -1 self.download_files(self.on_files_fetched, movie, curpage, show, movies_count) else: |