def _is_valid_url(self, url, video_id, item='video', headers={}):
    url = self._proto_relative_url(url, scheme='http:')
    if (not (url.startswith('http://') or url.startswith('https://'))):
        return True
    try:
        self._request_webpage(url, video_id, ('Checking %s URL' % item), headers=headers)
        return True
    except ExtractorError as e:
        self.to_screen(('%s: %s URL is invalid, skipping: %s' % (video_id, item, error_to_compat_str(e.cause))))
        return False
def _is_valid_url(self, url, video_id, item='video', headers={}):
    url = self._proto_relative_url(url, scheme='http:')
    if (not (url.startswith('http://') or url.startswith('https://'))):
        return True
    try:
        self._request_webpage(url, video_id, ('Checking %s URL' % item), headers=headers)
        return True
    except ExtractorError as e:
        self.to_screen(('%s: %s URL is invalid, skipping: %s' % (video_id, item, error_to_compat_str(e.cause))))
        return False