From 6f2edeaf89093ae59425ed7c6223e96a87050009 Mon Sep 17 00:00:00 2001 From: projectdx Date: Tue, 19 Sep 2023 23:37:50 +0900 Subject: [PATCH] =?UTF-8?q?main=20->=202023.09.20=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 | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/logic_ohli24.py b/logic_ohli24.py index cc95fa0..f40e43a 100644 --- a/logic_ohli24.py +++ b/logic_ohli24.py @@ -67,7 +67,7 @@ logger = P.logger class LogicOhli24(LogicModuleBase): db_default = { "ohli24_db_version": "1.1", - "ohli24_url": "https://ohli24.com", + "ohli24_url": "https://a18.ohli24.com", "ohli24_download_path": os.path.join(path_data, P.package_name, "ohli24"), "ohli24_auto_make_folder": "True", "ohli24_auto_make_season_folder": "True", @@ -232,9 +232,7 @@ class LogicOhli24(LogicModuleBase): # user_agent=ua, # ) - LogicOhli24.headers[ - "Referer" - ] = "https://anilife.com/detail/id/471" + LogicOhli24.headers["Referer"] = "https://anilife.com/detail/id/471" # print(LogicAniLife.headers) LogicOhli24.headers["Referer"] = LogicOhli24.episode_url @@ -957,7 +955,7 @@ class LogicOhli24(LogicModuleBase): def check_for_new_post(self): # Get the HTML content of the page - res = requests.get("https://ohli24.com/bbs/board.php?bo_table=ing") + res = requests.get("https://a18.ohli24.com/bbs/board.php?bo_table=ing") soup = BeautifulSoup(res.content, "html.parser") # Find the latest post on the page @@ -966,7 +964,7 @@ class LogicOhli24(LogicModuleBase): soup.find("div", class_="img-item") .find("img", class_="wr-img") .get("src") - .replace("..", "https://ohli24.com") + .replace("..", "https://a18.ohli24.com") ) logger.debug(f"latest_post:: {latest_post}") @@ -1167,7 +1165,7 @@ class Ohli24QueueEntity(FfmpegQueueEntity): # Get episode info from OHLI24 site def make_episode_info(self): try: - base_url = "https://ohli24.com" + base_url = "https://a18.ohli24.com" 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 @@ -1211,7 +1209,7 @@ class Ohli24QueueEntity(FfmpegQueueEntity): # matched_line = match.group(0) # print(matched_line) # iframe_url = "https://ohli24.org/" - iframe_src = f"https://ohli24.com{iframe_url}" + iframe_src = f"https://a18.ohli24.com{iframe_url}" iframe_html = LogicOhli24.get_html(iframe_src, headers=headers, timeout=600)