From 15fa9cf51749b7a8e36b0b00f01c70075dc4793e Mon Sep 17 00:00:00 2001 From: Luo Jinghua Date: Sat, 23 Jan 2010 23:43:31 +0800 Subject: ppstream: fixed play list navigating --- totem/plugin/ppstream.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3