main -> 2023.07.01 ohli24 버그 픽스 (.01. 다운로드 문제 해결)
This commit is contained in:
@@ -1197,9 +1197,29 @@ class Ohli24QueueEntity(FfmpegQueueEntity):
|
|||||||
iframe_url = match.group(1)
|
iframe_url = match.group(1)
|
||||||
logger.info("iframe_url::> %s", iframe_url)
|
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"<iframe src=\"(.*?)\" allowfullscreen>"
|
||||||
|
|
||||||
|
match = re.search(pattern, iframe_html)
|
||||||
|
if match:
|
||||||
|
iframe_src = match.group(1)
|
||||||
|
print(iframe_src)
|
||||||
|
|
||||||
logger.debug(f"iframe_src:::> {iframe_src}")
|
logger.debug(f"iframe_src:::> {iframe_src}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user