Unverified Commit b37e47a3 authored by Sergey M․'s avatar Sergey M․
Browse files

[twitch:stream] Expect 400 and 410 HTTP errors from API

parent ce3735df
......@@ -56,7 +56,10 @@ class TwitchBaseIE(InfoExtractor):
'Accept': 'application/vnd.twitchtv.v5+json; charset=UTF-8',
'Client-ID': self._CLIENT_ID,
kwargs['headers'] = headers
'headers': headers,
'expected_status': (400, 410),
response = self._download_json(
'%s/%s' % (self._API_BASE, path), item_id,
*args, **compat_kwargs(kwargs))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment