diff --git a/bot/config.py b/bot/config.py index 18c530ae..93285ed5 100644 --- a/bot/config.py +++ b/bot/config.py @@ -78,6 +78,8 @@ def __init__(self): self.TG_DL_CLIENT = config("TG_DL_CLIENT", default="pyrogram") self.TG_UL_CLIENT = config("TG_UL_CLIENT", default="pyrogram") self.THUMB = config("THUMBNAIL", default=None) + self.USE_ANILIST = config("USE_ANILIST", default=True, cast=bool) + self.USE_CAPTION = config("USE_CAPTION", default=True, cast=bool) self.WORKERS = config("WORKERS", default=2, cast=int) except Exception: print("Environment vars Missing; or") diff --git a/bot/startup/before.py b/bot/startup/before.py index e37c0002..ca38d2b9 100644 --- a/bot/startup/before.py +++ b/bot/startup/before.py @@ -41,10 +41,16 @@ with open(ffmpeg_file, "w") as file: file.write(str(conf.FFMPEG) + "\n") -if not file_exists(mux_file) and MUX_ARGS: +if not file_exists(mux_file) and conf.MUX_ARGS: with open(mux_file, "w") as file: file.write(str(conf.MUX_ARGS) + "\n") +if not conf.USE_ANILIST: + Path("NO_PARSE").touch() + +if not conf.USE_CAPTION: + Path("NO_CAPTION").touch() + if not os.path.isdir("downloads/"): os.mkdir("downloads/") if not os.path.isdir("encode/"): diff --git a/version.txt b/version.txt index 57db93e2..bb12f158 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v2.2.0-beta.0.5 (stable) +v2.2.0-beta.0.5.12 (stable)