2022.01.31 anilife 버그 픽스 (.03. 기타)
This commit is contained in:
@@ -51,10 +51,11 @@ from framework.util import Util
|
||||
from framework.common.util import headers
|
||||
from plugin import (
|
||||
LogicModuleBase,
|
||||
FfmpegQueueEntity,
|
||||
FfmpegQueue,
|
||||
default_route_socketio,
|
||||
)
|
||||
|
||||
# 철자가 틀린 부분이 있어서 분리함
|
||||
from .lib.plugin import FfmpegQueue, FfmpegQueueEntity
|
||||
from tool_base import d
|
||||
|
||||
# 패키지
|
||||
@@ -1025,13 +1026,32 @@ class LogicAniLife(LogicModuleBase):
|
||||
)
|
||||
|
||||
def scheduler_function(self):
|
||||
logger.debug(f"anilife scheduler_function::=========================")
|
||||
logger.debug(f"anilife scheduler_function:: =========================")
|
||||
|
||||
content_code_list = P.ModelSetting.get_list("anilife_auto_code_list", "|")
|
||||
url = f'{P.ModelSetting.get("anilife_url")}/dailyani'
|
||||
|
||||
if "all" in content_code_list:
|
||||
url = f'{P.ModelSetting.get("anilife_url")}/dailyani'
|
||||
ret_data = LogicAniLife.get_auto_anime_info(self, url=url)
|
||||
|
||||
elif len(content_code_list) > 0:
|
||||
for item in content_code_list:
|
||||
url = P.ModelSetting.get("anilife_url") + "/detail/id/" + item
|
||||
print("scheduling url: %s", url)
|
||||
# ret_data = LogicOhli24.get_auto_anime_info(self, url=url)
|
||||
content_info = self.get_series_info(item)
|
||||
|
||||
logger.debug(content_info)
|
||||
# exit()
|
||||
|
||||
for episode_info in content_info["episode"]:
|
||||
add_ret = self.add(episode_info)
|
||||
if add_ret.startswith("enqueue"):
|
||||
self.socketio_callback("list_refresh", "")
|
||||
# logger.debug(f"data: {data}")
|
||||
# self.current_data = data
|
||||
# db에서 다운로드 완료 유무 체크
|
||||
|
||||
def plugin_load(self):
|
||||
self.queue = FfmpegQueue(
|
||||
P, P.ModelSetting.get_int("anilife_max_ffmpeg_process_count")
|
||||
|
||||
Reference in New Issue
Block a user