Bug#636630: pu: package clive/2.2.13-5+squeeze3
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: pu
Hi,
to keep our track record of one clive update per point release, I would
like to upload clive/2.2.13-5+squeeze3. It adapts the code for URL
extraction to recent changes to the youtube.com website[1].
Please consider making the update also available via squeeze-updates.
Regards,
Ansgar
[1] <http://bugs.debian.org/636612>
diff -Nru clive-2.2.13/debian/changelog clive-2.2.13/debian/changelog
--- clive-2.2.13/debian/changelog 2011-05-09 21:51:19.000000000 +0200
+++ clive-2.2.13/debian/changelog 2011-08-04 20:26:44.000000000 +0200
@@ -1,3 +1,10 @@
+clive (2.2.13-5+squeeze3) stable; urgency=low
+
+ * Adapt for youtube.com changes. (Closes: #636612)
+ + new patch: 636612-youtube.diff
+
+ -- Ansgar Burchardt <ansgar@debian.org> Thu, 04 Aug 2011 20:26:42 +0200
+
clive (2.2.13-5+squeeze2) stable; urgency=low
* Adapt for liveleak.com changes.
diff -Nru clive-2.2.13/debian/patches/636612-youtube.diff clive-2.2.13/debian/patches/636612-youtube.diff
--- clive-2.2.13/debian/patches/636612-youtube.diff 1970-01-01 01:00:00.000000000 +0100
+++ clive-2.2.13/debian/patches/636612-youtube.diff 2011-08-04 20:24:36.000000000 +0200
@@ -0,0 +1,35 @@
+From: Ansgar Burchardt <ansgar@debian.org>
+Date: Thu, 04 Aug 2011 19:57:48 +0200
+Subject: Adapt to youtube.com changes
+Origin: vendor
+Bug-Debian: http://bugs.debian.org/636612
+Bug: https://sourceforge.net/apps/trac/clive/ticket/12
+
+--- clive.orig/lib/clive/Host/Youtube.pm
++++ clive/lib/clive/Host/Youtube.pm
+@@ -33,7 +33,7 @@
+
+ my %re = (
+ id => qr|"video_id": "(.*?)"|,
+- fmt_url_map => qr|fmt_url_map=(.*?)&|,
++ url_encoded_fmt_stream_map => qr|url_encoded_fmt_stream_map=(.*?)&|,
+ );
+
+ my $tmp;
+@@ -44,8 +44,14 @@
+
+ require URI::Escape;
+
+- foreach (split /,/, URI::Escape::uri_unescape ($tmp->{fmt_url_map})) {
+- my ($id, $url) = split /\|/, $_;
++ foreach (split /,/, URI::Escape::uri_unescape ($tmp->{url_encoded_fmt_stream_map})) {
++ my %map;
++ for my $kv (split /&/) {
++ my ($key, $value) = split /=/, $kv;
++ $map{$key} = URI::Escape::uri_unescape($value);
++ }
++ my $id = $map{itag};
++ my $url = $map{url};
+ $best = $url unless $best;
+ $h{$id} = $url;
+ }
diff -Nru clive-2.2.13/debian/patches/series clive-2.2.13/debian/patches/series
--- clive-2.2.13/debian/patches/series 2011-05-09 21:51:19.000000000 +0200
+++ clive-2.2.13/debian/patches/series 2011-08-04 20:24:52.000000000 +0200
@@ -4,3 +4,4 @@
0001-Vimeo.pm-Fix-video-ID-parsing-2.patch
0001-Youtube-Fix-video-ID-parsing-10.patch
liveleak-fix-from-2.2.25.patch
+636612-youtube.diff
Reply to: