diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2009-11-28 16:05:55 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2009-11-28 16:05:55 +0800 |
commit | f1d7ffea00211ef222f0f6dd03d73b6e24a8ddfc (patch) | |
tree | 785e24f87c23e3b71809ed06c0be979be06d1f2c | |
parent | 5e4b5e339027681de793ff42e6b313ee84684702 (diff) |
otem: fixed copy-location, copy the origin location instead the recoded0.18
one
-rw-r--r-- | totem/plugin/ppstream.py | 8 | ||||
-rw-r--r-- | totem/plugin/ppstream.ui | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/totem/plugin/ppstream.py b/totem/plugin/ppstream.py index a59d100..30708bf 100644 --- a/totem/plugin/ppstream.py +++ b/totem/plugin/ppstream.py @@ -1389,12 +1389,12 @@ class PPStream (totem.Plugin): pixbuf = None url = self.recode_mrl (f.url) if pos == -1: - it = treeview.append ([pixbuf, film.title, url, tip, clsid, subclsid]) + it = treeview.append ([pixbuf, film.title, url, tip, clsid, subclsid, f.url]) else: it = treeview.insert (0) treeview.set (it, 0, pixbuf, 1, film.title, 2, url, 3, tip, - 4, clsid, 5, subclsid) + 4, clsid, 5, subclsid, f.url) if not film.pixbuf and film.smallimage and self.configs['show_posters']: self.retrieveimage.retrieve (film.smallimage, self.on_image_retrieved, film, it, clsid, subclsid, @@ -1406,7 +1406,7 @@ class PPStream (totem.Plugin): treeview = self.liststore[treeview_name] for f in film.files: no = str(f.ci) + '/' + str(film.cn) - it = treeview.append ([no, film.title, self.recode_mrl (f.url)]) + it = treeview.append ([no, film.title, self.recode_mrl (f.url), f.url]) def fill_all_films (self, clsid, subclsid): cls, subcls = self.get_class_pair (clsid, subclsid) @@ -1551,7 +1551,7 @@ class PPStream (totem.Plugin): model = treeview.get_model () model, rows = selection.get_selected_rows () iter = model.get_iter (rows[0]) - mrl = model.get_value (iter, 2) + mrl = model.get_value (iter, 3) clip = gtk.Clipboard () clip.set_text (mrl) diff --git a/totem/plugin/ppstream.ui b/totem/plugin/ppstream.ui index 1522762..602a14e 100644 --- a/totem/plugin/ppstream.ui +++ b/totem/plugin/ppstream.ui @@ -24,6 +24,8 @@ <column type="gchararray"/> <!-- column-name MRL --> <column type="gchararray"/> + <!-- column-name OrigMRL --> + <column type="gchararray"/> </columns> </object> <object class="GtkListStore" id="pps_liststore_films"> @@ -40,6 +42,8 @@ <column type="gint"/> <!-- column-name Subclass --> <column type="gint"/> + <!-- column-name OrigMRL --> + <column type="gchararray"/> </columns> </object> <object class="GtkVBox" id="pps_vbox"> |