Compare commits
2 Commits
dd8a68a267
...
1b76d36352
| Author | SHA1 | Date | |
|---|---|---|---|
| 1b76d36352 | |||
| a7cf43e0cc |
@@ -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