2022.01.31 anilife 버그 픽스
This commit is contained in:
@@ -71,7 +71,7 @@ class LogicAniLife(LogicModuleBase):
|
||||
db_default = {
|
||||
"anilife_db_version": "1",
|
||||
"anilife_url": "https://anilife.live",
|
||||
"anilife_download_path": os.path.join(path_data, P.package_name, "ohli24"),
|
||||
"anilife_download_path": os.path.join(path_data, P.package_name, "anilife"),
|
||||
"anilife_auto_make_folder": "True",
|
||||
"anilife_auto_make_season_folder": "True",
|
||||
"anilife_finished_insert": "[완결]",
|
||||
@@ -988,9 +988,9 @@ class LogicAniLife(LogicModuleBase):
|
||||
)
|
||||
|
||||
def scheduler_function(self):
|
||||
logger.debug(f"ohli24 scheduler_function::=========================")
|
||||
logger.debug(f"anilife scheduler_function::=========================")
|
||||
|
||||
content_code_list = P.ModelSetting.get_list("ohli24_auto_code_list", "|")
|
||||
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:
|
||||
ret_data = LogicAniLife.get_auto_anime_info(self, url=url)
|
||||
@@ -1365,20 +1365,20 @@ class AniLifeQueueEntity(FfmpegQueueEntity):
|
||||
|
||||
self.filename = Util.change_text_for_use_filename(ret)
|
||||
logger.info(f"self.filename::> {self.filename}")
|
||||
self.savepath = P.ModelSetting.get("ohli24_download_path")
|
||||
self.savepath = P.ModelSetting.get("anilife_download_path")
|
||||
logger.info(f"self.savepath::> {self.savepath}")
|
||||
|
||||
if P.ModelSetting.get_bool("ohli24_auto_make_folder"):
|
||||
if P.ModelSetting.get_bool("anlife_auto_make_folder"):
|
||||
if self.info["day"].find("완결") != -1:
|
||||
folder_name = "%s %s" % (
|
||||
P.ModelSetting.get("ohli24_finished_insert"),
|
||||
P.ModelSetting.get("anilife_finished_insert"),
|
||||
self.content_title,
|
||||
)
|
||||
else:
|
||||
folder_name = self.content_title
|
||||
folder_name = Util.change_text_for_use_filename(folder_name.strip())
|
||||
self.savepath = os.path.join(self.savepath, folder_name)
|
||||
if P.ModelSetting.get_bool("ohli24_auto_make_season_folder"):
|
||||
if P.ModelSetting.get_bool("anilife_auto_make_season_folder"):
|
||||
self.savepath = os.path.join(
|
||||
self.savepath, "Season %s" % int(self.season)
|
||||
)
|
||||
@@ -1512,9 +1512,9 @@ class ModelAniLifeItem(db.Model):
|
||||
item.episode_no = q["epi_queue"]
|
||||
item.title = q["content_title"]
|
||||
item.episode_title = q["title"]
|
||||
item.ohli24_va = q["va"]
|
||||
item.ohli24_vi = q["_vi"]
|
||||
item.ohli24_id = q["_id"]
|
||||
item.anilife_va = q["va"]
|
||||
item.anilife_vi = q["_vi"]
|
||||
item.anilife_id = q["_id"]
|
||||
item.quality = q["quality"]
|
||||
item.filepath = q["filepath"]
|
||||
item.filename = q["filename"]
|
||||
@@ -1523,5 +1523,5 @@ class ModelAniLifeItem(db.Model):
|
||||
item.vtt_url = q["vtt"]
|
||||
item.thumbnail = q["thumbnail"]
|
||||
item.status = "wait"
|
||||
item.ohli24_info = q["anilife_info"]
|
||||
item.anilife_info = q["anilife_info"]
|
||||
item.save()
|
||||
|
||||
Reference in New Issue
Block a user