Bug#689010: unblock: libquvi-scripts/0.4.8-3
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock
Please unblock libquvi-scripts. It includes a fix for YouTube.
unblock libquvi-scripts/0.4.8-3
Ansgar
diff -Nru libquvi-scripts-0.4.8/debian/changelog libquvi-scripts-0.4.8/debian/changelog
--- libquvi-scripts-0.4.8/debian/changelog 2012-09-02 18:46:49.000000000 +0200
+++ libquvi-scripts-0.4.8/debian/changelog 2012-09-28 10:16:13.000000000 +0200
@@ -1,3 +1,11 @@
+libquvi-scripts (0.4.8-3) unstable; urgency=low
+
+ * Backport upstream patch for new signature parameter on YouTube.
+ (Closes: #688972)
+ + new patch: 688972-youtube.diff
+
+ -- Ansgar Burchardt <ansgar@debian.org> Fri, 28 Sep 2012 10:14:26 +0200
+
libquvi-scripts (0.4.8-2) unstable; urgency=low
* Upload to unstable.
diff -Nru libquvi-scripts-0.4.8/debian/patches/688972-youtube.diff libquvi-scripts-0.4.8/debian/patches/688972-youtube.diff
--- libquvi-scripts-0.4.8/debian/patches/688972-youtube.diff 1970-01-01 01:00:00.000000000 +0100
+++ libquvi-scripts-0.4.8/debian/patches/688972-youtube.diff 2012-09-28 10:14:05.000000000 +0200
@@ -0,0 +1,33 @@
+From 5b1c00284e1bae3069b51d07d84d3a096ca6bfcf Mon Sep 17 00:00:00 2001
+From: Martin Herkt <lachs0r@hong-mailing.de>
+Date: Thu, 27 Sep 2012 13:45:27 +0200
+Subject: [PATCH] Fix youtube.lua
+Bug-Debian: http://bugs.debian.org/688972
+
+YouTube has added a new "signature" parameter to their playback URLs.
+Append this parameter to the URL if url_encoded_fmt_stream_map contains
+"sig".
+---
+ share/lua/website/youtube.lua | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/share/lua/website/youtube.lua b/share/lua/website/youtube.lua
+index e7fc60c..39cc31d 100644
+--- a/share/lua/website/youtube.lua
++++ b/share/lua/website/youtube.lua
+@@ -125,7 +125,11 @@ function YouTube.iter_formats(config, U)
+ for f in fmt_stream_map:gmatch('([^,]*),') do
+ local d = U.decode(f)
+ if d['itag'] and d['url'] then
+- urls[U.unescape(d['itag'])] = U.unescape(d['url'])
++ local uurl = U.unescape(d['url'])
++ if d['sig'] then
++ uurl = uurl .. "&signature=" .. U.unescape(d['sig'])
++ end
++ urls[U.unescape(d['itag'])] = uurl
+ end
+ end
+
+--
+1.7.10.4
+
diff -Nru libquvi-scripts-0.4.8/debian/patches/series libquvi-scripts-0.4.8/debian/patches/series
--- libquvi-scripts-0.4.8/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ libquvi-scripts-0.4.8/debian/patches/series 2012-09-28 10:12:39.000000000 +0200
@@ -0,0 +1 @@
+688972-youtube.diff
Reply to: