added util functions to check url and video provider url