diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2010-07-22 12:16:28 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2010-07-22 12:16:28 +0800 |
commit | b4451fda317f17f1e3897bef35a25ff1561f6f14 (patch) | |
tree | 211fc820ff13e29b3acdcabdfd4684a77fb035a2 | |
parent | dc7d6a38ca4d5a320237326593c2f446d010922d (diff) |
ppslist: return a empty list for the first page if it isn't ready yet
-rw-r--r-- | totem/plugin/ppslist.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/totem/plugin/ppslist.py b/totem/plugin/ppslist.py index c948ab4..2353f17 100644 --- a/totem/plugin/ppslist.py +++ b/totem/plugin/ppslist.py @@ -91,6 +91,8 @@ class PPSClass: return movies def getPage(self, page_id): + if page_id == 0 and not self.max_page: + return [] assert (page_id >= 0 and page_id < self.max_page) if self.pages.has_key(page_id): return self.pages[page_id] |