public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in media-video/totem/files: totem-2.26.4-youtube-plug-play-vids.patch
@ 2009-11-14 17:31 Romain Perier (mrpouet)
  0 siblings, 0 replies; only message in thread
From: Romain Perier (mrpouet) @ 2009-11-14 17:31 UTC (permalink / raw
  To: gentoo-commits

mrpouet     09/11/14 17:31:36

  Added:                totem-2.26.4-youtube-plug-play-vids.patch
  Log:
  Fix a problem in the youtube plugin, When trying to play a video, bug #292839. Thanks to Ryan May.
  (Portage version: 2.2_rc49/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  media-video/totem/files/totem-2.26.4-youtube-plug-play-vids.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/totem/files/totem-2.26.4-youtube-plug-play-vids.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/totem/files/totem-2.26.4-youtube-plug-play-vids.patch?rev=1.1&content-type=text/plain

Index: totem-2.26.4-youtube-plug-play-vids.patch
===================================================================
Date: Sat, 14 Nov 2009 18:15:55 +0100
Subject: Fix a problem in the youtube plugin when we try to play a video (in the search panel or by giving it a url).
Bug: https://bugs.gentoo.org/show_bug.cgi?id=292839

Mainly due to a malformed regexp.

---
 src/plugins/youtube/youtube.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

--- a/src/plugins/youtube/youtube.py
+++ b/src/plugins/youtube/youtube.py
@@ -204,7 +204,7 @@ class YouTube (totem.Plugin):
 	def resolve_t_param (self, youtube_id):
 		"""We have to get the t parameter from the actual video page, since Google changed how their URLs work"""
 		stream = urllib.urlopen ("http://youtube.com/watch?v=" + urllib.quote (youtube_id))
-		regexp1 = re.compile ("swfArgs.*\"t\": \"([^\"]+)\"")
+		regexp1 = re.compile ("'SWF_ARGS'.*\"t\": \"([^\"]+)\"")
 		regexp2 = re.compile ("</head>")
 
 		contents = stream.read ()







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-14 17:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-14 17:31 [gentoo-commits] gentoo-x86 commit in media-video/totem/files: totem-2.26.4-youtube-plug-play-vids.patch Romain Perier (mrpouet)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox