def get_urls(url): headers = header_random_agent() p_url = parse_url(url) html = http_get(url, headers=headers) soup = BeautifulSoup(html.text, 'html.parser') iframe = soup.find("iframe") iframe_url = "%s://%s/%s" % (p_url.scheme, p_url.netloc, iframe.get("src")) return generic_m3u8_searcher.get_urls(iframe_url)
def test(url): vid_urls = get_urls(url) print(vid_urls)
def root(url): ref_url = urllib.unquote(url).decode('utf8') urls = get_urls(ref_url) add_items(urls, ref_url, PLUGIN)
def get_urls(url): return generic_m3u8_searcher.get_urls(url)[1:]