Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Youtube-dl unnecessarily peeking at stdin #4945
Comments
|
Thanks for the report! It should work in the next version, the problem was when running ffmpeg for extracting the audio.
Maybe I misunderstood this part, but you can just import the |
|
Great, thank you. My final comment was tongue-in-cheek wishing for a C api. However, I was unaware the internal api was stable enough to call from Python. Thanks for the tip. |
|
You can always call python from C. Most of the changes are for adding/improving websites supports, so there aren't many breaking changes. |
Youtube-dl appears to be peeking at stdin for no reason.
Steps to recreate:
Step 1. Create a file with one url per line.
Step 2. Loop over the file with a shell loop.
Output on my machine
Issue
stdinis being read for no reason, consuming input before shell'sreadcan read it.Workarounds
Possibly-relevant information
urxvtandxterm. Identical results happen with each.Suspected cause
urxvtis not bi-directional text safe.xtermis. Using--bidi-workaroundmakes dumping json fail. Is Fribidi or some other library being used peeking at stdin?Wishlist fix
Separate the
youtube-dlinto a core library and a command line wrapper. Having a proper api would obviate issues resulting from drivingyoutube-dlthrough a terminal emulator. :)