[Bug]: Logging issue with yt-dlp #394
Labels
BUG 🐛
Vidgear api's error, flaw or fault
BUG CONFIRMED ✅
Bug is confirmed!
WORK IN PROGRESS 🚧
currently been worked on.
Projects
Milestone
Description
While initializing logging backend, the following code is used:
# define default options for yt-dlp backend self.ydl_opts = { "format": "best*[vcodec!=none]", "quiet": True, "prefer_insecure": False, "no_warnings": True if logging else False, "dump_single_json": True, "extract_flat": True, "skip_download": True, }
However, no_warnings should be the other way round.
no_warnings: False if logging else True
Issue Checklist
Expected behaviour
Should be like this:
# define default options for yt-dlp backend self.ydl_opts = { "format": "best*[vcodec!=none]", "quiet": True, "prefer_insecure": False, "no_warnings": False if logging else True, "dump_single_json": True, "extract_flat": True, "skip_download": True, }
Actual behaviour
With logging = False, I see warning messages from YT-DLP.
With logging = True, I don't see warning messages from YT-DLP
Steps to reproduce
Open any youtube stream
Terminal log output
Python Code(Optional)
No response
VidGear Version
0.3.2
Python version
3.10
OpenCV version
4.2
Operating System version
Ubuntu 22.04
Any other Relevant Information?
N/A
The text was updated successfully, but these errors were encountered: