diff options
-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]) |