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

Redirection of output (stdout/stderr) from youtube-dl creates files with unix-type line breaks on Windows #18040

Open
e-d-n-a opened this issue Nov 1, 2018 · 1 comment

Comments

@e-d-n-a
Copy link

@e-d-n-a e-d-n-a commented Nov 1, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.10.29. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.10.29

Before submitting an issue make sure you have:

  • 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)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


Example of storing recent list of supported sites:
youtube-dl -v --list-extractors >ytdl-extractors.txt

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--list-extractors']

ytdl-extractors.txt


Or example of getting title to random trending youtube video ID:
youtube-dl -v -e JIFMN986m8s 1>ytdl-output.txt 2>&1

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-e', 'JIFMN986m8s']
[debug] Encodings: locale cp1252, fs utf-8, out cp1252, pref cp1252
[debug] youtube-dl version 2018.10.29
[debug] Python version 3.7.0 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: none
[debug] Proxy map: {}
[debug] Default format spec: bestvideo+bestaudio/best
Worst Halloween Candy Taste Test (Day 3)

ytdl-output.txt


Description of your issue, suggested solution and other information

Shouldn't youtube-dl by default use the platform-specific type of line break, when outputting to stdout/stderr!?
I haven't had this issue with earlier versions, but noticed it only recently.

Is it a problem of my python installation (Python 3.7.0 - 32 bit) or of youtube-dl?
The used encodings seem to be right or do they not?

@gorbiWTF
Copy link

@gorbiWTF gorbiWTF commented Jun 9, 2019

Still happening as of 2019.06.08: Error output correctly uses \r\n but normal output only uses \n on Windows.

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.