diff --git a/logic_ohli24.py b/logic_ohli24.py index fb631c4..a706392 100644 --- a/logic_ohli24.py +++ b/logic_ohli24.py @@ -7,7 +7,7 @@ # @Software: PyCharm import os, sys, traceback, re, json, threading -from datetime import datetime +from datetime import datetime, date import copy import hashlib @@ -239,15 +239,26 @@ class LogicOhli24(LogicModuleBase): def scheduler_function(self): # Todo: 스케쥴링 함수 미구현 - logger.debug(f"scheduler_function::=========================") - url = P.ModelSetting.get("ohli24_url") + "/bbs/board.php?bo_table=ing" + logger.debug(f"ohli24 scheduler_function::=========================") content_code_list = P.ModelSetting.get_list("ohli24_auto_code_list", "|") logger.debug(f"content_code_list::: {content_code_list}") url_list = ["https://www.naver.com/", "https://www.daum.net/"] + + week = ["월요일", "화요일", "수요일", "목요일", "금요일", "토요일", "일요일"] + today = date.today() + print(today) + print() + print(today.weekday()) + + url = f'{P.ModelSetting.get("ohli24_url")}/bbs/board.php?bo_table=ing&sca={week[today.weekday()]}' + + print(url) + + if "all" in content_code_list: + pass # result = asyncio.run(LogicOhli24.main(url_list)) # logger.debug(f"result:: {result}") - pass @staticmethod async def get_data(url): diff --git a/templates/anime_downloader_ohli24_category.html b/templates/anime_downloader_ohli24_category.html index 55fc43b..9800447 100644 --- a/templates/anime_downloader_ohli24_category.html +++ b/templates/anime_downloader_ohli24_category.html @@ -139,7 +139,7 @@ tmp = '