totem's youtube plugin code needs to be updated

Bug #288494 reported by viln on 2008-10-24
362
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Totem
Fix Released
High
totem (Ubuntu)
Low
Ubuntu Desktop Bugs
Hardy
Low
Ubuntu Desktop Bugs

Bug Description

When I do a search on totem's youtube plugin it gets stuck "Fetching results ...". The reason for that:

** (totem:2670): DEBUG: Init of Python module
** (totem:2670): DEBUG: Registering Python plugin instance: BBCViewer+TotemPythonPlugin
** (totem:2670): DEBUG: Creating object of type BBCViewer+TotemPythonPlugin
** (totem:2670): DEBUG: Creating Python plugin instance
** (totem:2670): DEBUG: Init of Python module
** (totem:2670): DEBUG: Registering Python plugin instance: YouTube+TotemPythonPlugin
** (totem:2670): DEBUG: Creating object of type YouTube+TotemPythonPlugin
** (totem:2670): DEBUG: Creating Python plugin instance
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/lib/totem/plugins/youtube/youtube.py", line 55, in run
    res = self.callback(*self.args, **self.kwargs)
  File "/usr/lib/totem/plugins/youtube/youtube.py", line 320, in process_next_thumbnail
    mrl = "http://www.youtube.com/get_video?video_id=" + urllib.quote (youtube_id) + "&t=" + urllib.quote (re.match (".*[?&]t=([^&]+)", location).groups ()[0]) + self.get_fmt_string ()
AttributeError: 'NoneType' object has no attribute 'groups'

My setup: 64-bit 8.10

Tried a patch from here, still not working:
http://bugzilla.gnome.org/show_bug.cgi?id=557470

Sebastien Bacher (seb128) wrote :

the bug is known upstream on http://bugzilla.gnome.org/show_bug.cgi?id=557681 and has been fixed in their svn now

Changed in totem:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Fix Committed

This bug was fixed in the package totem - 2.24.2-0ubuntu4

---------------
totem (2.24.2-0ubuntu4) intrepid; urgency=low

  * debian/patches/90_youtube_url_update.patch:
    - upstream change to understand the new youtube url (lp: #288494)

 -- Sebastien Bacher <email address hidden> Fri, 24 Oct 2008 19:08:42 +0200

Changed in totem:
status: Fix Committed → Fix Released
Christoph Langner (chrissss) wrote :

Will this fix be backported to totem in Ubuntu Hardy?

Changed in totem:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Confirmed
Robin Sheat (eythian) wrote :

This (or something very similar) is still causing the youtube plugin in hardy to not work. A backport would be appreciated.

MMarking (cpt-mocha) wrote :

Please fix this in Hardy. "3 years support". Thanks!

Colin Watson (cjwatson) on 2008-11-10
Changed in totem:
milestone: none → ubuntu-8.04.2
Rui Oliveira (racoqster) wrote :

I've fixed the youtube.py, don't know if it as already been released the fix, it is working on my acer one. If you have problem try the following attachement, and copy it to /usr/lib/totem/plugins/youtube

(dont forget to do a backup of your youtube.py)

Rui Oliveira (racoqster) wrote :
woodenpeacock (thunderpart) wrote :

Thank you!

Sam_ (and-sam) wrote :

Confirm and thanks to Rui, it works.
@Admins, please verify and upstream for Hardy LTS, thanks.

Mads Christensen (madsc90) wrote :

I confirm that Rui Oliveira's fix works.

Koopee (koopee1234) wrote :

Worked for me too.

Except that Totem does not seem to buffer the video and I can not use the time slider.

Rui Oliveira (racoqster) wrote :

Koopee:
Time slider never worked in the youtube plugin bundled with hardy. It seens to do buffering in my PC.

Koopee (koopee1234) wrote :

Thanks Rui, it indeed seems to depend on buffering.

I noticed that if I pause the youtube stream for too long, I get "Could not read from resource." error.
I would quess that the server thinks that the connection is interrupted and breaks the connection.

Anyway, which component handles the buffering? I think I could do something to enhance it if I knew where to look.

Koopee (koopee1234) wrote :

Found a nice program youtube-dl. Helps to download the whole video from youtube.

It gives enough buffering for every need...

Mariusz Kielpinski (kielpi) wrote :

If you think that problem is solved than you are wrong. There is still no official backport to hardy (3 year support isn`t it). Downloading some files from 3rd person place is no a solution to that problem.

Rui Oliveira (racoqster) wrote :

 Mariusz Kielpinski

If you think that files from 3rd person is no solution, then don't download the file i've attached and stop winning.

 Koopee

Koopee

I already told you, that anyhthing that has to do with the time slider, forwarding, pausing, etc, did not work on the original plugin that came with Hardy, and STILL, doesn't work now. I only edited the youtube.py, and updated the links to youtube service, based in what it is on the totem project SVN, of Gnome.

Rui Oliveira (racoqster) wrote :

 Mariusz Kielpinski

If you think that files from 3rd person is no solution, then don't download the file i've attached and stop winning.

Koopee

I already told you, that anyhthing that has to do with the time slider, forwarding, pausing, etc, did not work on the original plugin that came with Hardy, and STILL, doesn't work now. I only edited the youtube.py, and updated the links to youtube service, based in what it is on the totem project SVN, of Gnome.

worked here. well done.

evolipel (mlepilov) wrote :

I'm sure Mariusz Kielpinski meant that it's no solution to the 99% of the people who have experienced this problem. That is, the people who have experienced it and did not care enough to go hunting around for a random solution on a bug tracking site. That's not what "Linux for human beings" means.

It actually took me a good 15 minutes to find this; there are many other bugs with "ffdemux_swf" that have nothing to do with this particular problem (those other bugs refer to codec issues with gstreamer, and several people from the other bugs have been misdirected and have given up because of the confusion). This isn't a simple find by any means.

Don't get me wrong, the fix works perfectly, and I thank you for the work you've done, but it's been a month since the fix was made available. We don't blame you for not placing this in hardy-backports; the admins are the ones who should have done this. Pointing out a problem is not whining, even though the problem is fairly small: it's a niche plugin for Totem, after all. I'm under the impression, however, that Ubuntu originally prided itself ideologically on shipping this plugin as the solution to the proprietary evils and such conferred by using Adobe Flash to actually go to YouTube. Touting this as the solution and then leaving it broken is slightly disingenuous, though I'm sure it wasn't done intentionally. Point is, they should keep their 3-years-support promise and pay attention.

Rui Oliveira (racoqster) wrote :

I see your point and i agree evolipel.

Still don't understand why this bug is Confirmed when i released a valid fix that so far works for everyone.
I may understand this delay, if the ubuntu devs have plans to backport a recent version of totem that has the fix.

Meanwhile i hope people affected reach this launchpad bug, maybe google can be their friend.

Changed in totem:
status: Unknown → Fix Released
Sebastien Bacher (seb128) wrote :

I've been looking at this change for hardy but it's not trivial, the code changed quite a lot between hardy and intrepid and the patch which has been used in intrepid doesn't apply to the hardy version, the updated version which is available in this bug doesn't only change the url used but also has changes to uses the api urls which seems to be a different issue and it's not clear if those are required

Sebastien Bacher (seb128) wrote :
Sebastien Bacher (seb128) wrote :

the change seems to be working correctly on hardy so I've uploaded that now

Sebastien Bacher írta:
> the change seems to be working correctly on hardy so I've uploaded that
> now
>

Pls., where?...

csola48 (mail-csordaslaszlo) wrote :

csola írta:
> Sebastien Bacher írta:
>> the change seems to be working correctly on hardy so I've uploaded that
>> now
>>
> Pls., where?...
>

Big, big sorry... Solved...

warp

Colin Watson (cjwatson) on 2009-01-22
Changed in totem:
milestone: ubuntu-8.04.2 → ubuntu-8.04.3

Accepted into hardy-proposed, please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in totem:
milestone: ubuntu-8.04.3 → none
status: Confirmed → Fix Committed
Steve Langasek (vorlon) on 2009-01-23
Changed in totem:
milestone: none → ubuntu-8.04.3

Confirming that totem 2.22.1-0ubuntu3 from hardy-proposed fixes this issue.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package totem - 2.22.1-0ubuntu3

---------------
totem (2.22.1-0ubuntu3) hardy-proposed; urgency=low

  * debian/patches/90_youtube_url_update.patch:
    - upstream change to understand the new youtube url (lp: #288494)

 -- Sebastien Bacher <email address hidden> Thu, 15 Jan 2009 11:03:18 +0100

Changed in totem:
status: Fix Committed → Fix Released
Wayne H (wha05499) wrote :

I already had the totem package above already installed (came thru automatic update) but it still didn't fix it. The way I had been doing it was to copy the downloaded youtube video from the /tmp folder to desktop and add extension .flv. This used to work about 6 months ago but no longer.

My fix:
Download package youtube-dl with synaptic package manager.
To use, open terminal and enter:
 youtube-dl <youtube video URL>
The resulting .flv file will be saved to your home folder (unless you changed directory in terminal).
I can play this flv in totem no problems.

Hope that helps.

Tom rooze.sen (tomrooze-sen) wrote :

[URL=http://s10.directupload.net/file/d/1740/2wy38z2a_png.htm][IMG]http://s10.directupload.net/images/090321/temp/2wy38z2a.png[/IMG][/URL]

Has nothing helped.
But is not important anymore, I totally uninstalled Totem.
Use only VLCplayer and mplayer frontend SMPlayer.
Totem has me totally dismissed. (very sorry)
Thanks for the effort.
Regards Tom.

So no more emails about this bug please.

timbo (argetim-r) on 2009-04-13
security vulnerability: no → yes
visibility: public → private
Robin Sheat (eythian) wrote :

Security? What? Why?

security vulnerability: yes → no
visibility: private → public
juniors (juniors1980) on 2009-05-07
summary: - the youtube code needs to be updated
+ tv tuner
summary: - tv tuner
+ the youtube code needs to be updated
eric bana (banaest) on 2009-08-23
Changed in totem (Ubuntu):
status: Fix Released → New
Steve Langasek (vorlon) on 2009-08-23
Changed in totem (Ubuntu):
status: New → Fix Released
raymond1 (raymondrctr) on 2009-09-02
Changed in totem (Ubuntu):
status: Fix Released → In Progress
Changed in totem (Ubuntu Hardy):
status: Fix Released → In Progress
Sebastien Bacher (seb128) wrote :

the bug described there has been fixed don't reopen without comment

Changed in totem (Ubuntu Hardy):
status: In Progress → Fix Released
Changed in totem (Ubuntu):
status: In Progress → Fix Released
Americo Castellanos (n2zil) wrote :

Thanks for the information - I updated the file and now it works fine. I also stopped using 8.04 and I'm now using 9.04

Ivan Ivanoff (spammeroff) wrote :

Youtube in totem does not work again in 9.04.
1. Searching is working.
2. Playing is not.
I am getting box with message "An error location; you might not have permission to open the file".
Here is totem log:
ivan@tachilla:~$ LANG=C totem
/var/lib/python-support/python2.6/gdata/tlslite/utils/cryptomath.py:9: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
** Message: Error: "http://www.youtube.com/get_video?video_id=pTRsLW0eet0&t=vjVQa1PpcFOQJdxzBHMysgCkkDvMpzGrTL0G8-EwwFA%253D&fmt=18": Not Found
gstsouphttpsrc.c(1084): gst_soup_http_src_parse_status (): /GstPlayBin:play/GstSoupHTTPSrc:source:
404 Not Found
----------end of log----------------------------------------------------------------

All files are not found. Maybe is it security feature from YouTube?

summary: - the youtube code needs to be updated
+ totem's youtube plugin code needs to be updated
Changed in totem (Ubuntu):
status: Fix Released → Fix Committed
Changed in totem (Ubuntu):
status: Fix Committed → Fix Released
woodenpeacock (thunderpart) wrote :

HERE IS MINE.

Changed in totem (Ubuntu):
status: Fix Released → Confirmed
Steve Langasek (vorlon) wrote :

This bug was already fixed. If further updates to the code are needed, please open a separate bug report.

Changed in totem (Ubuntu):
status: Confirmed → Fix Released
frizzle21 (frederik-nnaji) wrote :

do regressions that lead to the same error need dupes on launchpad?
why don't i just report a regression locally, i.e. here?

Changed in totem:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.