[arch-commits] Commit in livestreamer/repos/community-any (3 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Dec 13 14:32:21 UTC 2014


    Date: Saturday, December 13, 2014 @ 15:32:20
  Author: foutrelis
Revision: 123837

archrelease: copy trunk to community-any

Added:
  livestreamer/repos/community-any/PKGBUILD
    (from rev 123836, livestreamer/trunk/PKGBUILD)
Deleted:
  livestreamer/repos/community-any/0001-plugins.twitch-Update-for-API-change.patch
  livestreamer/repos/community-any/PKGBUILD

-------------------------------------------------+
 0001-plugins.twitch-Update-for-API-change.patch |   57 -----------------
 PKGBUILD                                        |   72 +++++++++-------------
 2 files changed, 31 insertions(+), 98 deletions(-)

Deleted: 0001-plugins.twitch-Update-for-API-change.patch
===================================================================
--- 0001-plugins.twitch-Update-for-API-change.patch	2014-12-13 14:31:56 UTC (rev 123836)
+++ 0001-plugins.twitch-Update-for-API-change.patch	2014-12-13 14:32:20 UTC (rev 123837)
@@ -1,57 +0,0 @@
-From bbc6d0e7c1a8b6bf053345e88366cae115baa2d3 Mon Sep 17 00:00:00 2001
-From: Christopher Rosell <chrippa at tanuki.se>
-Date: Fri, 12 Dec 2014 00:14:43 +0100
-Subject: [PATCH] plugins.twitch: Update for API change.
-
-Resolves #633.
----
- src/livestreamer/plugins/twitch.py | 17 +++++++++--------
- 1 file changed, 9 insertions(+), 8 deletions(-)
-
-diff --git a/src/livestreamer/plugins/twitch.py b/src/livestreamer/plugins/twitch.py
-index ca0d2bd..0adc872 100644
---- a/src/livestreamer/plugins/twitch.py
-+++ b/src/livestreamer/plugins/twitch.py
-@@ -125,8 +125,8 @@ def time_to_offset(t):
- 
- 
- class UsherService(object):
--    def _create_url(self, endpoint, asset, **extra_params):
--        url = "http://usher.twitch.tv/{0}/{1}".format(endpoint, asset)
-+    def _create_url(self, endpoint, **extra_params):
-+        url = "http://usher.twitch.tv{0}".format(endpoint)
-         params = {
-             "player": "twitchweb",
-             "p": int(random() * 999999),
-@@ -145,11 +145,12 @@ class UsherService(object):
- 
-         return req.url
- 
--    def select(self, channel, **extra_params):
--        return self._create_url("select", channel, **extra_params)
-+    def channel(self, channel, **extra_params):
-+        return self._create_url("/api/channel/hls/{0}.m3u8".format(channel),
-+                                **extra_params)
- 
--    def vod(self, vod_id, **extra_params):
--        return self._create_url("vod", vod_id, **extra_params)
-+    def video(self, video_id, **extra_params):
-+        return self._create_url("/vod/{0}".format(video_id), **extra_params)
- 
- 
- class TwitchAPI(object):
-@@ -417,9 +418,9 @@ class Twitch(Plugin):
-         self._authenticate()
-         sig, token = self._access_token(type)
-         if type == "live":
--            url = self.usher.select(self.channel, nauthsig=sig, nauth=token)
-+            url = self.usher.channel(self.channel, sig=sig, token=token)
-         elif type == "video":
--            url = self.usher.vod(self.video_id, nauthsig=sig, nauth=token)
-+            url = self.usher.video(self.video_id, nauthsig=sig, nauth=token)
- 
-         try:
-             streams = HLSStream.parse_variant_playlist(self.session, url)
--- 
-2.1.3
-

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2014-12-13 14:31:56 UTC (rev 123836)
+++ PKGBUILD	2014-12-13 14:32:20 UTC (rev 123837)
@@ -1,41 +0,0 @@
-# $Id$
-# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
-# Contributor: Christopher Rosell <chrippa at tanuki.se>
-pkgname=livestreamer
-pkgver=1.11.0
-pkgrel=1
-pkgdesc='CLI program that launches streams from various streaming services in a custom video player'
-arch=('any')
-url='https://github.com/chrippa/livestreamer'
-license=('BSD')
-depends=('python-requests' 'rtmpdump' 'python-setuptools')
-makedepends=('python-sphinx')
-provides=('livestreamer')
-conflicts=('livestreamer-git')
-options=(!emptydirs)
-source=(https://pypi.python.org/packages/source/l/$pkgname/$pkgname-$pkgver.tar.gz
-        0001-plugins.twitch-Update-for-API-change.patch)
-sha256sums=('5af677ec93ebce229ac235ea6c23aec915deb4aacc8bdb8418c8488fbdd96920'
-            '2dd33dca00befedb0754700c3aeb7921361b2c87c78eb55de397c18376d94952')
-
-prepare() {
-  cd "$srcdir/$pkgname-$pkgver"
-  patch -Np1 -i ../0001-plugins.twitch-Update-for-API-change.patch
-}
-
-build() {
-  cd "$srcdir/$pkgname-$pkgver"
-  python setup.py build_sphinx -b man
-}
-
-package() {
-  cd "$srcdir/$pkgname-$pkgver"
-  python setup.py install --root="$pkgdir/" --optimize=1
-
-  install -Dm644 build/sphinx/man/livestreamer.1 \
-    "$pkgdir/usr/share/man/man1/livestreamer.1"
-
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: livestreamer/repos/community-any/PKGBUILD (from rev 123836, livestreamer/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2014-12-13 14:32:20 UTC (rev 123837)
@@ -0,0 +1,31 @@
+# $Id$
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Christopher Rosell <chrippa at tanuki.se>
+pkgname=livestreamer
+pkgver=1.11.1
+pkgrel=1
+pkgdesc='CLI program that launches streams from various streaming services in a custom video player'
+arch=('any')
+url='https://github.com/chrippa/livestreamer'
+license=('BSD')
+depends=('python-requests' 'rtmpdump' 'python-setuptools')
+makedepends=('python-sphinx')
+source=(https://pypi.python.org/packages/source/l/$pkgname/$pkgname-$pkgver.tar.gz)
+sha256sums=('84dd83d301518ffcf96f30cbffc0e0598e0756e7ab8e7498d11285d42fe17f9c')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  python setup.py build_sphinx -b man
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  python setup.py install --root="$pkgdir/" --optimize=1
+
+  install -Dm644 build/sphinx/man/livestreamer.1 \
+    "$pkgdir/usr/share/man/man1/livestreamer.1"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list