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 display redirection #1031

Closed
vanilla38 opened this issue Jul 12, 2013 · 1 comment
Closed

youtube-dl display redirection #1031

vanilla38 opened this issue Jul 12, 2013 · 1 comment

Comments

@vanilla38
Copy link

@vanilla38 vanilla38 commented Jul 12, 2013

Hello, since some days I redirect youtube-dl displays in log files to get a trace of some broken downloads with this command:

youtube-dl http://youtube.zzz/zzz?v=zzz | tee logfile.txt

but i just noticed it doesnt save the whole text, certain parts like "Raise" text are displayed but not saved in the file, however, the "Print" text is saved correctly.

Does someone have any idea on how to save the whole content displayed when downloading a file with youtube-dl ?

Thanks.

@phihag
Copy link
Contributor

@phihag phihag commented Jul 12, 2013

That's not specific to youtube-dl, but how every program works: You have two output streams, stdout and stderr. (Exceptional) error messages go on stderr, whereas normal log output (which some applications parse from youtube-dl) goes to stdout. Use 2>&1 to redirect stderr to stdout, like

youtube-dl BaW_jenozKc 2>&1 | tee logfile.txt
@phihag phihag closed this Jul 12, 2013
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
2 participants
You can’t perform that action at this time.