Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Twitch live stream fails with python 3. #5158
Comments
|
This will be fixed in the next version. Thanks for the report. |
When trying to download a twitch live stream in python 3, downloading the m3u8 information often (but not always) fails due to an HTTP 403 error. From what I can tell, the bug is around line 367 of twitch.py. The expression
compat_urllib_parse.urlencode(query).encode('utf-8')gives a bytes object, which is inserted into the format string asb'whatever', giving an invalid URL. For example, such an URL might beRemoving the
.encode('utf-8')seems to work, but I'm not sure if it breaks anything else.I have also attached the output of the program below.