Le lundi 11 avril 2011 01:58:41 Dan Schmidt, vous avez écrit :
> 
> Were you able to get it to work in Freevo?
> 

Yes.
Here's a quick'n'dirty solution :

Edit the file FREEVO_INSTALL_DIR/video/plugins/youtube.py
At line 218, change 
 cmd = config.YOUTUBE_DL +  '  -g "http://www.youtube.com/watch?v=' + arg[1] + 
'"'
by
 cmd = config.YOUTUBE_DL + ' ' + config.YOUTUBE_DL_OPTS +  '  -g 
"http://www.youtube.com/watch?v=' + arg[1] + '"'

Then edit ~/.freevo/local_conf.py and add youtube plugin with options :
YOUTUBE_DL = "/usr/bin/youtube-dl"
YOUTUBE_DL_OPTS = "--cookies /tmp/youtube.cookie"
YOUTUBE_VIDEOS = [
   ("A user", "a description")
]

Finally, you have to edit ~/.mplayer/config to set the cookie option :

cookies=1
cookies-file=/tmp/youtube.cookie

Does it works for you ?


------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to