How can a script in the included task scheduler set up that it only runs in the day time e.g. from 8am to 11pm and stops during the night. Starting again on 8am next day till 11pm and so on?
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