Try printing ( with log) the command you are trying to execute, run it in a seperate command line to see if it's working properly.
since it's related to input I am suspecting the problem is with the youtube url you are providing
how do I set user agent now that set header is deprecated?
-
Now that set header is deprecated, I’m not sure what module to use to set user agent.
-
@ryanscripts even if its deprecated you can still use it, but keep in mind that it changes only header, not internal user-agent like in navigator and etc