diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2010-11-26 15:18:44 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2010-11-26 15:18:44 +0800 |
commit | dc137c5ebe616a9fea8d61def9b58e03be01f6f1 (patch) | |
tree | 265c21dcf52ab64c8d394b3062ebb8901aee4b52 | |
parent | 9414053988e3d7be34198ca41c89451b48708a01 (diff) |
-rw-r--r-- | totem/plugin/ppstream.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/totem/plugin/ppstream.py b/totem/plugin/ppstream.py index 101ea81..c903151 100644 --- a/totem/plugin/ppstream.py +++ b/totem/plugin/ppstream.py @@ -1147,8 +1147,7 @@ class PPStream (totem.Plugin): print 'Failed to loading posters:', class_path, e pass - def recode_mrl (self, url): - return url + def recode_mrl (self, url, fid = 0): if not self.can_recode_mrl: return url path, qs = urllib.splitquery (url) @@ -1159,8 +1158,11 @@ class PPStream (totem.Plugin): except Exception, e: print 'Failed to recode url:', e return url + fidstr = 'fid=%d' % fid if qs is None: - qs = '' + qs = '?' + fidstr + else: + qs += '&' + fidstr return path + qs def fetch_movie_poster(self, class_path, movie, it): @@ -1182,7 +1184,7 @@ class PPStream (totem.Plugin): pixbuf = movie.pixbuf if not self.configs['show_posters']: pixbuf = None - url = self.recode_mrl (origurl) + url = self.recode_mrl (origurl, movie.id) if pos == -1: it = model.append ([pixbuf, movie.title, url, tip, repr(class_path), origurl]) |