Thanks John, great idea.  And, thank Adam for fixing the youtube plugin! 
(Sry for late reply, rarely get opportunity to mess with Freevo)

One note for others:

Previously, a fix like this was required in localconf:
YOUTUBE_DL = '/usr/bin/youtube-dl -f 34'

This will not work anymore, but there is a better way:

372         cmd = [config.YOUTUBE_DL, '-o', '-',
"http://www.youtube.com/watch?v=%s"; % id]
373         if config.YOUTUBE_FORMAT:
374             cmd += ['-f', config.YOUTUBE_FORMAT]

Instead, set YOUTUBE_FORMAT:

YOUTUBE_DL = '/usr/bin/youtube-dl'
YOUTUBE_FORMAT = '34'

On 10/27/2010 01:34 PM, John Molohan wrote:
> On 12/10/2010 00:36, Dan Schmidt wrote:
>> Anybody seen this one?  I haven't had time to look into it.  If not,
>> I'll look into it.  There's no "if not mess:"
>>
>> UnboundLocalError: local variable 'stream' referenced before assignment
>> Traceback (most recent call last):
>>    File "/usr/lib/python2.6/dist-packages/freevo/main.py", line 306, in
>> eventhandler
>>      app.eventhandler(event)
>>    File "/usr/share/pyshared/freevo/menu.py", line 842, in eventhandler
>>      self._handle_play_item(menu, event)
>>    File "/usr/share/pyshared/freevo/menu.py", line 654, in
>> _handle_play_item
>>      action(arg=arg, menuw=self)
>>    File "/usr/share/pyshared/freevo/menu.py", line 106, in select
>>      self.function(arg=self.arg, menuw=menuw)
>>    File "/usr/share/pyshared/freevo/video/plugins/youtube.py", line 226,
>> in watchvideo
>>      playvideo2 = YoutubeVideoItem(_('bla'), stream, self)
>> UnboundLocalError: local variable 'stream' referenced before assignment
>>
>> 221         while proceso.poll() == None:
>> 222             mess = follow.readline()
>> 223             if mess:
>> 224                 stream =  mess.strip()
>> 225         # Create a fake VideoItem
>> 226         playvideo2 = YoutubeVideoItem(_('bla'), stream, self)
>>
> Hi Dan,
>
> Can't say I've seen that but I know Adam has checked in some changes
> recently to the youtube plugin. Can you test from svn and report if
> you still see this?
>
> John
>

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to