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

Add dump json #341

Merged
merged 5 commits into from
May 10, 2023
Merged

Add dump json #341

merged 5 commits into from
May 10, 2023

Conversation

jonas-resch
Copy link
Contributor

This pull request adds a new option to the command (-j/--dump-json). When passed it ouputs the output of yt-dlp as a plain JSON. This is useful when calling spotify-dl programmatically.

jonas-resch and others added 5 commits April 29, 2023 20:50
For the option --dump-json the only thing outputted needs to be the json so that other applications can use it, we therefore need to make sure nothing other than the json is outputtet when using the option
@SathyaBhat
Copy link
Owner

Hi @jonas-resch! Thanks for the PR. I'm curious to know what do you do with the json dump (note it won't block the PR merge, I'm just curious)

@jonas-resch
Copy link
Contributor Author

jonas-resch commented May 3, 2023

Hi @SathyaBhat,
we use it for our Discord music bot where we call spotify-dl from C++ and parse the JSON output.

@SathyaBhat SathyaBhat merged commit 14f241d into SathyaBhat:master May 10, 2023
@jonas-resch jonas-resch deleted the add-dump-json branch May 21, 2023 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants