Comment 16 for bug 323649

Revision history for this message
CiscoReject (ciscoreject) wrote :

As a relatively new Ubuntu user, I was pleased to work this out :)

This line is currently in the config

< mrl = "http://www.youtube.com/get_video?video_id=" + urllib.quote (youtube_id) + "&t=" + urllib.quote (t_param) + self.get_fmt_string ()

This line is what the line above needs to be amended to

> mrl = "http://www.youtube.com/get_video?video_id=" + urllib.quote (youtube_id) + "&t=" + t_param + self.get_fmt_string ()

To do this - i saved this patch link to my documents folder first. don't need to, but i just found it easier. open it in text editor.

Close Movie player

browse to "/usr/lib/totem/plugins/youtube" and make a copy of this file (I lasily just copied it to the desktop using the GUI, but I guess any CLI equivilant command would work just as well)

open the terminal from Applications - Accessories - Terminal - and type "cd /usr/lib/totem/plugins/youtube"

once you are in the youtube directory, type "gksudo gedit youtube.py" which opens the config file with admin privs (so you can save it later)

within the file just opened, search for the original line shown in the patch (I just searched for "mrl" - it's near the bottom) - then copy and paste the new line, replacing the old one

i.e: mine now looks like this
****
"""Get the video stream MRL"""
  t_param = self.resolve_t_param (youtube_id)

  if t_param != "":
   mrl = "http://www.youtube.com/get_video?video_id=" + urllib.quote (youtube_id) + "&t=" + t_param + self.get_fmt_string ()

  gobject.idle_add (self._append_to_liststore, treeview_name, pixbuf, entry.title.text, mrl, youtube_id, search_token)
****

now save the file and close it. open Movie Player, and you should be able to search for YouTube Videos and play them fine. If you have any probs, you can always revert back to the original file you made a copy of and try again.

Hope that helps, sorry if it's a bit patronising

Thanks to lightpriest for the patch! Works a treat! :)