From 77b01b0a2854ee456d7d4a8ffa2bc6e113b77a49 Mon Sep 17 00:00:00 2001 From: CommanderRoot Date: Sat, 7 Jun 2014 04:00:38 +0200 Subject: [PATCH] added audio only support for streams I'm not sure if this is the correct way to add a parameter to the request but if it isn't you guys now know at least the parameter to get audio only streams --- src/livestreamer/plugins/justintv_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/livestreamer/plugins/justintv_common.py b/src/livestreamer/plugins/justintv_common.py index 5cbac750..bcd60f1d 100644 --- a/src/livestreamer/plugins/justintv_common.py +++ b/src/livestreamer/plugins/justintv_common.py @@ -94,8 +94,8 @@ def url(self, path, *args, **kwargs): def select(self, channel, password=None, **extra_params): url = self.url(USHER_SELECT_PATH, channel) params = dict(p=int(random() * 999999), type="any", - allow_source="true", private_code=password or "null", - **extra_params) + allow_source="true", allow_audio_only="true", + private_code=password or "null", **extra_params) req = requests.Request("GET", url, params=params) # prepare_request is only available in requests 2.0+