def play_with_res(video,res,config,f): print("Launching browser...") d = get_driver(config['driver']) y = YouTube(video,res, d, config['youtube'], f) y.play() time.sleep(2)