Skip to content

Commit

Permalink
added audio only support for streams
Browse files Browse the repository at this point in the history
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
  • Loading branch information
CommanderRoot committed Jun 7, 2014
1 parent a73f547 commit 77b01b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/livestreamer/plugins/justintv_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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+
Expand Down

0 comments on commit 77b01b0

Please sign in to comment.