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 ec696b8 commit f2481dd
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ENV TZ=Africa/Lagos
ENV TERM=xterm

# Install Dependencies
RUN dnf -qq -y update && dnf -qq -y install git aria2 bash xz wget curl pv jq python3-pip mediainfo psmisc procps-ng qbittorrent-nox && python3 -m pip install --upgrade pip
RUN dnf -qq -y update && dnf -qq -y install git aria2 bash xz wget curl pv jq python3-pip mediainfo psmisc procps-ng qbittorrent-nox && python3 -m pip install --upgrade pip setuptools

# Install latest ffmpeg
RUN wget https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n6.1-latest-linux64-gpl-6.1.tar.xz && tar -xvf *xz && cp *6.1/bin/* /usr/bin && rm -rf *xz && rm -rf *6.1
Expand Down
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 requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ tzlocal
quote
certifi>=2023.7.22 # not directly required, pinned by Snyk to avoid a vulnerability
requests>=2.31.0 # not directly required, pinned by Snyk to avoid a vulnerability
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
#setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
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.11 (beta)
v2.2.0-beta.0.5.12 (beta)

0 comments on commit f2481dd

Please sign in to comment.