I tried that, but original_data was never a CollectedTorrent.


On Wed, Jun 4, 2014 at 2:42 PM, NielsZeilemaker <notifications@github.com>
wrote:

> In Tribler/Main/vwxGUI/list_item.py:
>
> > @@ -349,8 +348,16 @@ def AddButtons(self):
> >                  break
> >
> >          if do_add:
> > +            self.plbutton = self.AddButton("Stream", lambda evt: self.guiutility.library_manager.playTorrent(self.original_data.infohash))
> >              self.dlbutton = self.AddButton("Download", lambda evt: self.guiutility.frame.top_bg.OnDownload(evt, [self.original_data]))
> >              self.dlbutton.Enable('completed' not in self.original_data.state and 'active' not in self.original_data.state)
>
> We always enable plbutton, but disable it when we collect the torrent.
> Shouldn't you check if self.original_data is a coltorrent, and if so enable
> based on isPlayable() ?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Tribler/tribler/pull/626/files#r13383282>.
>