chrippa / livestreamer

Command-line utility that extracts streams from various services and pipes them into a video player of choice. No longer maintained, use streamlink or youtube-dl instead.
http://livestreamer.io/
BSD 2-Clause "Simplified" License
3.88k stars 585 forks source link

Unable view Twitch streams #1538

Closed rubickcz closed 7 years ago

rubickcz commented 7 years ago

When I try to play any Twitch live stream or video, livestreamer exits with the following error:

$ livestreamer https://www.twitch.tv/tsm_doublelift
[cli][info] Found matching plugin twitch for URL https://www.twitch.tv/tsm_doublelift
error: Unable to open URL: https://api.twitch.tv/api/channels/tsm_doublelift/access_token.json (400 Client Error: Bad Request for url: https://api.twitch.tv/api/channels/tsm_doublelift/access_token.json?as3=t)
saggitar commented 7 years ago

In another Issue someone mentioned using --http-header Client-ID=jzkbprff40iqj646a697cyrvl0zt2m6 as a command line option. This works for me. (I also tried generating an access token, but livestreamer --twitch-oauth-authenticate leads me to an invalid page. Not quite sure where the Client-ID in the command above comes from :D)

rubickcz commented 7 years ago

This works for me as well. Thanks.

flijloku commented 7 years ago

Try this: https://github.com/chrippa/livestreamer/issues/1490#issuecomment-248632748 Or use https://github.com/streamlink/streamlink/releases