pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/totem make the youtube browser work again, ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/212ad66056cb
branches: trunk
changeset: 398731:212ad66056cb
user: drochner <drochner%pkgsrc.org@localhost>
date: Mon Sep 07 18:21:55 2009 +0000
description:
make the youtube browser work again, seems that there was a protocol
change (just lifted some parameters from youtube-dl)
ride on today's PKGREVISION bump
diffstat:
multimedia/totem/distinfo | 3 ++-
multimedia/totem/patches/patch-ah | 24 ++++++++++++++++++++++++
2 files changed, 26 insertions(+), 1 deletions(-)
diffs (42 lines):
diff -r 3608c0f9cdbf -r 212ad66056cb multimedia/totem/distinfo
--- a/multimedia/totem/distinfo Mon Sep 07 18:21:43 2009 +0000
+++ b/multimedia/totem/distinfo Mon Sep 07 18:21:55 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.32 2009/09/07 10:02:13 drochner Exp $
+$NetBSD: distinfo,v 1.33 2009/09/07 18:21:55 drochner Exp $
SHA1 (totem-2.26.3.tar.gz) = eb7fc23c6ff6c8e7c5a23ff15ec9fa1b59b5a494
RMD160 (totem-2.26.3.tar.gz) = 91386162699fd1c56c0976080c84ba677e8d566e
@@ -6,3 +6,4 @@
SHA1 (patch-ad) = ec8cd092d202255981049ace4ac643c41a0044be
SHA1 (patch-af) = 8e4ffb97aedbf56a052d5ffacea73f8b2f071183
SHA1 (patch-ag) = 41365aaf9864eeb871346e338b6c7cc7aaa676bb
+SHA1 (patch-ah) = 37d9a8e2938134befc1f606f8602b88831b4d16c
diff -r 3608c0f9cdbf -r 212ad66056cb multimedia/totem/patches/patch-ah
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/totem/patches/patch-ah Mon Sep 07 18:21:55 2009 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-ah,v 1.1 2009/09/07 18:21:55 drochner Exp $
+
+--- src/plugins/youtube/youtube.py.orig 2009-09-07 20:11:03.000000000 +0200
++++ src/plugins/youtube/youtube.py
+@@ -203,8 +203,8 @@ 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\": \"([^\"]+)\"")
++ stream = urllib.urlopen ("http://youtube.com/get_video_info?video_id=" + urllib.quote (youtube_id))
++ regexp1 = re.compile ("(?m)&token=([^&]+)(?:&|$)")
+ regexp2 = re.compile ("</head>")
+
+ contents = stream.read ()
+@@ -213,7 +213,7 @@ class YouTube (totem.Plugin):
+ matches = regexp1.search (contents)
+ if (matches != None):
+ stream.close ()
+- return matches.group (1)
++ return urllib.unquote(matches.group (1))
+
+ """Check to see if we've come to the end of the <head> tag; in which case, we should give up"""
+ if (regexp2.search (contents) != None):
Home |
Main Index |
Thread Index |
Old Index