anime_download style fix

This commit is contained in:
2022-06-07 20:00:29 +09:00
parent b5a56d8560
commit d9baf0704c
3 changed files with 34 additions and 7 deletions

View File

@@ -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):