Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to download all videos form user's twitch channel? #22979

Closed
shadowzoom opened this issue Nov 5, 2019 · 2 comments
Closed

How to download all videos form user's twitch channel? #22979

shadowzoom opened this issue Nov 5, 2019 · 2 comments
Labels

Comments

@shadowzoom
Copy link

@shadowzoom shadowzoom commented Nov 5, 2019

How to download all videos form user's twitch channel?
youtube-dl "https://www.twitch.tv/username/videos?filter=all&sort=time" -f best is not working

@shadowzoom shadowzoom added the question label Nov 5, 2019
@ualnwe
Copy link

@ualnwe ualnwe commented Nov 16, 2019

Since the new web UI design, most of the URLs changed to use ?filter=xxx

As a work around until the Twitch extractor is updated, using /all still works.
E.g. https://www.twitch.tv/username/videos/all

Side note, the current parsing will interpret that ?filter=xxx url as wanting to download the user's live stream, as if you passed https://www.twitch.tv/username, which may download partial streams if they’re live when you run it

@HeySteets
Copy link

@HeySteets HeySteets commented Jun 8, 2020

Heads-up: As of commit 841b683, this issue has been resolved by rewriting the Twitch extractor. Runyoutube-dl -U to get the latest version. The solution below no longer works.

Previous comment:
For anybody reading this in the future, the /all workaround no longer functions. The latest version of Twitch's API now requires a UserID instead of a channel name. To obtain a channel's UserID, Register an application on Twitch's Developer Portal. Then, using Postman, you can send an API request to https://api.twitch.tv/kraken/users?login=<username> with the Client-ID header of [yourClientID] and an Accept header of application/vnd.twitchtv.v5+json. The endpoint will respond with basic information about the channel; display name, type, bio, logo, and, importantly, "id". Copy the contents of that field and replace the channel name with it in your youtube-dl command, and it'll work like new.

@dstftw dstftw closed this in 841b683 Sep 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.