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.
I did it like this:
I applied quick fix locally. Also noticed that headers were not passed through so removed not needed ones (question is if Twitch-Api-Token is needed, it was working without it for some time). Youtube-dl should have it's own client-id probably instead of using web player one. Tho it is not for me to decide.
If someone wants quick fix until it is fixed in trunk:
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py
index 359a885..f393ab1 100644
--- a/youtube_dl/extractor/twitch.py
+++ b/youtube_dl/extractor/twitch.py
@@ -45,14 +45,13 @@ class TwitchBaseIE(InfoExtractor):
root@debian:~# youtube-dl -v https://www.twitch.tv/a_seagull/v/89333620?sr=a
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl", line 7, in
from youtube_dl import main
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/init.py", line 42, in
from .extractor import gen_extractors, list_extractors
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/init.py", line 9, in
from .extractors import *
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/extractors.py", line 951, in
from .twitch import (
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/twitch.py", line 54
/%s' % (self._API_BASE, path), item_id, note, headers = headers)
^
SyntaxError: invalid syntax