Compare commits
3 Commits
1b76d36352
...
9cae04584d
| Author | SHA1 | Date | |
|---|---|---|---|
| 9cae04584d | |||
| efcadde111 | |||
| 145e277895 |
@@ -67,7 +67,7 @@ logger = P.logger
|
||||
class LogicOhli24(LogicModuleBase):
|
||||
db_default = {
|
||||
"ohli24_db_version": "1.1",
|
||||
"ohli24_url": "https://ohli24.org",
|
||||
"ohli24_url": "https://ohli24.live",
|
||||
"ohli24_download_path": os.path.join(path_data, P.package_name, "ohli24"),
|
||||
"ohli24_auto_make_folder": "True",
|
||||
"ohli24_auto_make_season_folder": "True",
|
||||
@@ -955,7 +955,7 @@ class LogicOhli24(LogicModuleBase):
|
||||
|
||||
def check_for_new_post(self):
|
||||
# Get the HTML content of the page
|
||||
res = requests.get("https://ohli24.org/bbs/board.php?bo_table=ing")
|
||||
res = requests.get("https://ohli24.live/bbs/board.php?bo_table=ing")
|
||||
soup = BeautifulSoup(res.content, "html.parser")
|
||||
|
||||
# Find the latest post on the page
|
||||
@@ -964,7 +964,7 @@ class LogicOhli24(LogicModuleBase):
|
||||
soup.find("div", class_="img-item")
|
||||
.find("img", class_="wr-img")
|
||||
.get("src")
|
||||
.replace("..", "https://ohli24.org")
|
||||
.replace("..", "https://ohli24.live")
|
||||
)
|
||||
|
||||
logger.debug(f"latest_post:: {latest_post}")
|
||||
@@ -1165,7 +1165,7 @@ class Ohli24QueueEntity(FfmpegQueueEntity):
|
||||
# Get episode info from OHLI24 site
|
||||
def make_episode_info(self):
|
||||
try:
|
||||
base_url = "https://ohli24.org"
|
||||
base_url = "https://ohli24.live"
|
||||
iframe_url = ""
|
||||
|
||||
# https://ohli24.org/e/%EB%85%B9%EC%9D%84%20%EB%A8%B9%EB%8A%94%20%EB%B9%84%EC%8A%A4%EC%BD%94%206%ED%99%94
|
||||
@@ -1209,7 +1209,7 @@ class Ohli24QueueEntity(FfmpegQueueEntity):
|
||||
# matched_line = match.group(0)
|
||||
# print(matched_line)
|
||||
# iframe_url = "https://ohli24.org/"
|
||||
iframe_src = f"https://ohli24.org{iframe_url}"
|
||||
iframe_src = f"https://ohli24.live{iframe_url}"
|
||||
|
||||
iframe_html = LogicOhli24.get_html(iframe_src, headers=headers, timeout=600)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user