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 streams fail with Error 410: Gone #25528
Comments
|
Came to report the same: user@host:/home/user$ sudo youtube-dl -U user@host:/home/user$ youtube-dl https://www.twitch.tv/videos/641236111 --verbose |
|
Hey @Salz |
|
This is a real issue, I have started experiencing the same HTTP 410 Gone issue too. It broke sometime within the last 8 hours, worked great before. To reproduce, simply try opening any Twitch channel with youtube-dl. Applied both this and the thumbnail patches and things work now. |
Hey @GuillaumeSeren, can you share the exact command you used? For some reason it's rejecting the patch. |
|
@rooseveltrp sure, |
Awesome! Got it to work! |
|
@Salz feel like turning that patch into a PR? |
|
Is there any solution for Windows? |
|
@zap-stack wait for an update, or apply the patch provided by @Salz. |
|
Lets hope this doean't take a month to push a new release for this utterly breaks Twitch. Thanks @slaz. Thanks people. Great work.0 |
|
I tried applying the patch, but all it gets now is |
|
Hello, The gist contains URL command in verbose mode for full details. |
|
This is another bug due to Twitch changes. #25531 has a patch.
|
|
i'm getting the same error youtube-dl --verbose -o '%(uploader)s-%(upload_date)s-%(title)s-%(id)s.%(ext)s' "https://www.twitch.tv/videos/641148397?filter=archives&sort=time" [debug] System config: [] |
@GuillaumeSeren where exactly do we copy the patch to? Is it straight into the command prompt of youtube.dl or is this a file path that we need to follow? If so how do we get to that point? Sorry if these questions seem like no-brainers, I have no experience and am just trying to understand how it works. |
|
How do I apply the patch on windows? Can someone explain to me like I'm 5? Really noob when it comes to this stuff |
|
I've applied this patch and it's working fine. Thank you. |
Yes, I also have a similar problem on Windows. Maybe already update the exe file with the patch to us? |
Me too |
Checklist
I'm reporting a broken site support
I've verified that I'm running youtube-dl version 2020.05.29
I've checked that all provided URLs are alive and playable in a browser
I have my browser configured to not play videos, but the videos are alive and the attached patch fixes playback of the videos.
I've checked that all URLs and arguments with special characters are properly quoted or escaped
I've searched the bugtracker for similar issues including closed ones
Verbose log
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://twitch.tv/brossentia']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.05.29
[debug] Python version 3.8.3 (CPython) - Linux-5.6.9-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.2.2-1, ffprobe 4.2.2-1, rtmpdump 2.4
[debug] Proxy map: {}
[twitch:stream] brossentia: Downloading stream JSON
ERROR: Unable to download JSON metadata: HTTP Error 410: Gone (caused by <HTTPError 410: 'Gone'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 627, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 2238, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/usr/lib/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
Description
Looks like twitch removed the stream lookup by user name from the (obsolete) kraken API. Getting it by numerical user-id still works, but requires an additional request. The following patch fixes the issue:
live-api.diff.txt