diff --git a/logic_ohli24.py b/logic_ohli24.py index 3df4fe9..b60ce82 100644 --- a/logic_ohli24.py +++ b/logic_ohli24.py @@ -1197,9 +1197,29 @@ class Ohli24QueueEntity(FfmpegQueueEntity): iframe_url = match.group(1) logger.info("iframe_url::> %s", iframe_url) - iframe_url = soup1.find("iframe")["src"] + # try: + # iframe_url = soup1.find("iframe")["src"] + # except: + # + # pattern = r"\.\.\/(.*stream.php.*)" + # + # match = re.search(pattern, text, re.MULTILINE) + # if match: + # print(match) + # matched_line = match.group(0) + # print(matched_line) + # iframe_url = "https://ohli24.org/" + iframe_src = f"https://ohli24.org{iframe_url}" - iframe_src = iframe_url + iframe_html = LogicOhli24.get_html(iframe_src, headers=headers, timeout=600) + + print(iframe_html) + pattern = r"