def METHOD_NAME(self):
    url_type = self.match.group(1)
    log.debug("URL type={0}".format(url_type))
    res = self.session.http.get(self.url)
    if url_type != "live":
        m = self.video_name_re.search(res.text)
        video_name = m and m.group(1)
        if not video_name:
            raise PluginError("Could not determine video_name")
        log.debug("Video name={0}".format(video_name))
    m = self.main_js_url_re.search(res.text)
    main_js_path = m and m.group(1)
    if not main_js_path:
        raise PluginError("Could not determine main_js_path")
    log.debug("Main JS path={0}".format(main_js_path))
    res = self.session.http.get(urljoin(self.url, main_js_path))
    m = self.user_id_re.search(res.text)
    user_id = m and m.group(1)
    if not user_id:
        raise PluginError("Could not determine user_id")
    log.debug("User ID={0}".format(user_id))
    if url_type == "live":
        return self._get_live(user_id)
    else:
        return self._get_vod(user_id, video_name)