From a7cf43e0ccff94f6197fd11ae94f072656c1596e Mon Sep 17 00:00:00 2001 From: projectdx Date: Sat, 1 Jul 2023 00:09:52 +0900 Subject: [PATCH] =?UTF-8?q?main=20->=202023.07.01=20ohli24=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=20=ED=94=BD=EC=8A=A4=20(.01.=20=EB=8B=A4=EC=9A=B4?= =?UTF-8?q?=EB=A1=9C=EB=93=9C=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logic_ohli24.py | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) 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"