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

Youtube-dl doesn't ignore '--console-title' when '--dump-single-json' is present. #16103

Closed
xPMo opened this issue Apr 5, 2018 · 0 comments
Closed

Comments

@xPMo
Copy link

@xPMo xPMo commented Apr 5, 2018

  • I've verified and I assure that I'm running youtube-dl 2018.04.03
  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)

When printing json, escape codes are added due to the --console-title flag I have in my ~/.config/youtube-dl/config.

$ youtube-dl -J https://www.youtube.com/watch\?v\=dQw4w9WgXcQ | jq
parse error: Invalid numeric literal at line 1, column 2
$ youtube-dl --ignore-config -J https://www.youtube.com/watch\?v\=dQw4w9WgXcQ | jq
( Succeeds, prints json as expected )

This will also resolve this issue with mpv's ytdl_hook.

@xPMo xPMo changed the title Ignore --console-title when '--dump-single-json' Youtube-dl doesn't ignore '--console-title' when '--dump-single-json' is present. Apr 5, 2018
@dstftw dstftw closed this in 94c3442 Apr 8, 2018
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
1 participant
You can’t perform that action at this time.