summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2010-11-16 09:23:32 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2010-11-16 09:23:32 +0800
commit06aff60aa98b3f7b997213c38c0b6802b28c6b35 (patch)
tree26a29921b57ff2d0192b5a79c35c66de1ae96244
parent1e18434c4a3536febd0b3beaabbb214f1128e7e3 (diff)
ppslist2: fixed borked movie list parsing
-rw-r--r--totem/plugin/ppslist2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/totem/plugin/ppslist2.py b/totem/plugin/ppslist2.py
index 6961934..b7f230c 100644
--- a/totem/plugin/ppslist2.py
+++ b/totem/plugin/ppslist2.py
@@ -480,7 +480,8 @@ def getMovieSubclassList(cls):
return parseMovieSubclassList(cls, s)
def parseMovieList(movie_id, s):
- if s.find('xml') < 0:
+ pos = s.find('xml')
+ if pos >= 4:
s = unpack_zip(s)
s = xmlgbk2utf8(s)
dom = minidom.parseString(s)