[arch-commits] Commit in libquvi-scripts/repos (3 files)

Jan Steffens heftig at archlinux.org
Mon Oct 1 10:03:16 UTC 2012


    Date: Monday, October 1, 2012 @ 06:03:16
  Author: heftig
Revision: 167328

archrelease: copy trunk to extra-any

Added:
  libquvi-scripts/repos/extra-any/
  libquvi-scripts/repos/extra-any/0001-Fix-youtube.lua.patch
    (from rev 167327, libquvi-scripts/trunk/0001-Fix-youtube.lua.patch)
  libquvi-scripts/repos/extra-any/PKGBUILD
    (from rev 167327, libquvi-scripts/trunk/PKGBUILD)

----------------------------+
 0001-Fix-youtube.lua.patch |   32 ++++++++++++++++++++++++++++++++
 PKGBUILD                   |   31 +++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)

Copied: libquvi-scripts/repos/extra-any/0001-Fix-youtube.lua.patch (from rev 167327, libquvi-scripts/trunk/0001-Fix-youtube.lua.patch)
===================================================================
--- extra-any/0001-Fix-youtube.lua.patch	                        (rev 0)
+++ extra-any/0001-Fix-youtube.lua.patch	2012-10-01 10:03:16 UTC (rev 167328)
@@ -0,0 +1,32 @@
+From 5b1c00284e1bae3069b51d07d84d3a096ca6bfcf Mon Sep 17 00:00:00 2001
+From: Martin Herkt <lachs0r at hong-mailing.de>
+Date: Thu, 27 Sep 2012 13:45:27 +0200
+Subject: [PATCH] Fix youtube.lua
+
+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.12.1
+

Copied: libquvi-scripts/repos/extra-any/PKGBUILD (from rev 167327, libquvi-scripts/trunk/PKGBUILD)
===================================================================
--- extra-any/PKGBUILD	                        (rev 0)
+++ extra-any/PKGBUILD	2012-10-01 10:03:16 UTC (rev 167328)
@@ -0,0 +1,31 @@
+# $Id$
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+
+pkgname=libquvi-scripts
+pkgver=0.4.8
+pkgrel=2
+pkgdesc='Library for parsing video download links.'
+arch=('any')
+url='http://quvi.sourceforge.net/'
+license=('LGPL')
+depends=('curl' 'lua')
+options=('!libtool')
+source=("http://downloads.sourceforge.net/sourceforge/quvi/${pkgname}-${pkgver}.tar.gz"{,.sig}
+        0001-Fix-youtube.lua.patch)
+md5sums=('9a11cfcb474266b377ec41a5a502ffe0'
+         '7126dbed0e493135089018775b1652a6'
+         '0cdcda0fed2128c78c0c3ac784b94243')
+
+build() {
+  cd "${pkgname}-${pkgver}"
+
+  patch -Np1 -i ../0001-Fix-youtube.lua.patch
+
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+}




More information about the arch-commits mailing list