Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nubuki-all committed Dec 24, 2023
1 parent 326b076 commit 2606eb1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
8 changes: 7 additions & 1 deletion bot/startup/before.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/"):
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.2.0-beta.0.5 (stable)
v2.2.0-beta.0.5.12 (stable)

0 comments on commit 2606eb1

Please sign in to comment.