FreeBSD Bugzilla – Attachment 151776 Details for
Bug 196828
multimedia/livestreamer - update to 1.11.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
1.11.1 update
livestreamer.diff (text/plain), 3.75 KB, created by
Radim Kolar
on 2015-01-17 21:13:20 UTC
(
hide
)
Description:
1.11.1 update
Filename:
MIME Type:
Creator:
Radim Kolar
Created:
2015-01-17 21:13:20 UTC
Size:
3.75 KB
patch
obsolete
>Original version does not exist at /usr/ports/multimedia/py-livestreamer >Using /usr/ports/multimedia/livestreamer instead >===> Generating patch >===> Viewing diff with less >diff -ruN /usr/ports/multimedia/livestreamer/Makefile ./Makefile >--- /usr/ports/multimedia/livestreamer/Makefile 2014-12-12 18:15:45.000000000 +0100 >+++ ./Makefile 2015-01-17 22:08:03.000000000 +0100 >@@ -2,7 +2,7 @@ > # $FreeBSD: head/multimedia/livestreamer/Makefile 374600 2014-12-12 17:15:45Z nox $ > > PORTNAME= livestreamer >-PORTVERSION= 1.11.0 >+PORTVERSION= 1.11.1 > CATEGORIES= multimedia python > MASTER_SITES= CHEESESHOP > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >diff -ruN /usr/ports/multimedia/livestreamer/distinfo ./distinfo >--- /usr/ports/multimedia/livestreamer/distinfo 2014-12-12 18:15:45.000000000 +0100 >+++ ./distinfo 2015-01-17 22:08:08.000000000 +0100 >@@ -1,2 +1,2 @@ >-SHA256 (livestreamer-1.11.0.tar.gz) = 5af677ec93ebce229ac235ea6c23aec915deb4aacc8bdb8418c8488fbdd96920 >-SIZE (livestreamer-1.11.0.tar.gz) = 421706 >+SHA256 (livestreamer-1.11.1.tar.gz) = 84dd83d301518ffcf96f30cbffc0e0598e0756e7ab8e7498d11285d42fe17f9c >+SIZE (livestreamer-1.11.1.tar.gz) = 421719 >diff -ruN /usr/ports/multimedia/livestreamer/files/patch-bbc6d0e7c1a8b6bf053345e88366cae115baa2d3 ./files/patch-bbc6d0e7c1a8b6bf053345e88366cae115baa2d3 >--- /usr/ports/multimedia/livestreamer/files/patch-bbc6d0e7c1a8b6bf053345e88366cae115baa2d3 2014-12-12 18:15:45.000000000 +0100 >+++ ./files/patch-bbc6d0e7c1a8b6bf053345e88366cae115baa2d3 1970-01-01 01:00:00.000000000 +0100 >@@ -1,54 +0,0 @@ >-From bbc6d0e7c1a8b6bf053345e88366cae115baa2d3 Mon Sep 17 00:00:00 2001 >-From: Christopher Rosell <chrippa@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 @@ def _create_url(self, endpoint, asset, **extra_params): >- >- 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 @@ def _get_hls_streams(self, type="live"): >- 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) >====> Cleaning up >===> Done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 196828
: 151776