summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2010-11-15 11:06:22 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2010-11-15 11:06:22 +0800
commita159e53c2364372559f01c27aa0fb3d3cbe276cb (patch)
treec0eae819429c7f7bee70f3f592c178bf3d1d9c3b
parentea2c559010ca3f46f0ff4e13aec4f2d87cf1b98c (diff)
ppslist2: some movies don't have bkid
-rw-r--r--totem/plugin/ppslist2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/totem/plugin/ppslist2.py b/totem/plugin/ppslist2.py
index 93807fe..bfe15f1 100644
--- a/totem/plugin/ppslist2.py
+++ b/totem/plugin/ppslist2.py
@@ -373,7 +373,7 @@ class PPSMovie:
urltext = findTexthildNode(urlnode)
self.id = int(idnode.getAttribute('ID'))
self.score = float(idnode.getAttribute('VM') or '0.0')
- self.bkid = int(idnode.getAttribute('BKID'))
+ self.bkid = int(idnode.getAttribute('BKID') or '0')
if nametext:
self.title = unicode(nametext.data.strip()).encode('utf-8')
if urltext: