Skip to content

Commit 9aa1779

Browse files
authored
v0.0.8.dev (#19)
some changes, mostly typos and little bit change in ffmpeg
1 parent 81d46d1 commit 9aa1779

File tree

14 files changed

+30
-25
lines changed

14 files changed

+30
-25
lines changed

Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
FROM python:3.10-slim-buster
1+
FROM python:3.10.4-slim-buster
22

33
WORKDIR /usr/src/app
44
RUN chmod 777 /usr/src/app
55

6-
RUN apt-get -qq update && apt-get -qq install -y git wget pv jq python3-dev mediainfo gcc aria2 libsm6 libxext6 libfontconfig1 libxrender1 libgl1-mesa-glx
7-
8-
COPY --from=mwader/static-ffmpeg:6.0 /ffmpeg /bin/ffmpeg
9-
COPY --from=mwader/static-ffmpeg:6.0 /ffprobe /bin/ffprobe
6+
RUN apt -qq update && apt -qq install -y git wget pv jq python3-dev mediainfo gcc aria2 libsm6 libxext6 libfontconfig1 libxrender1 libgl1-mesa-glx ffmpeg
107

118
COPY . .
129
RUN pip3 install --no-cache-dir -r requirements.txt

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
[![Stars](https://img.shields.io/github/stars/kaif-00z/AutoAnimeBot?style=flat-square&color=yellow)](https://github.com/kaif-00z/AutoAnimeBot/stargazers)
22
[![Forks](https://img.shields.io/github/forks/kaif-00z/AutoAnimeBot?style=flat-square&color=orange)](https://github.com/kaif-00z/AutoAnimeBotfork)
33
[![Python](https://img.shields.io/badge/Python-v3.10.4-blue)](https://www.python.org/)
4-
[![CodeFactor](https://www.codefactor.io/repository/github/kaif-00z/autoanimebot/badge/main)](https://www.codefactor.io/repository/github/kaif-00z/autoanimebot/overview/main)
4+
[![CodeFactor](https://www.codefactor.io/repository/github/kaif-00z/autoanimebot/badge)](https://www.codefactor.io/repository/github/kaif-00z/autoanimebot)
55
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/kaif-00z/AutoAnimeBot/graphs/commit-activity)
66
[![Contributors](https://img.shields.io/github/contributors/kaif-00z/AutoAnimeBot?style=flat-square&color=green)](https://github.com/kaif-00z/AutoAnimeBot/graphs/contributors)
77
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)
88
[![License](https://img.shields.io/badge/license-GPLv3-blue)](https://github.com/kaif-00z/AutoAnimeBot/blob/main/LICENSE)
99
[![Sparkline](https://stars.medv.io/kaif-00z/AutoAnimeBot.svg)](https://stars.medv.io/kaif-00z/AutoAnimeBot)
1010

11+
## Developer Note
12+
13+
- __This repository is not intended or supported for deployment on KOYEB.__
14+
- If Hosted On Heroku Then Make Sure You Are Using Premium Dynos Or Any Above then basic dynos.
15+
- If You Don't Have High End VPS like 8vcpu or 32GiB RAM So Don't Deploy This Bot.
16+
- You Can Customize FFMPEG Code If You Know What You Are Doing.
17+
- __Ensure that you have adhered to this developer note before reporting any errors.__
18+
1119
## Changelog Of Latest Update
1220

1321
### v0.0.8
1422
- Shifted To Mongo Database.
15-
- Chnaged Hashing Algo To SHA256.
23+
- Changed Hashing Algo To SHA256.
1624
- Added About Command.
1725

1826
### v0.0.7
@@ -91,13 +99,13 @@
9199

92100
## Deployment In VPS
93101

94-
`git clone https://github.com/kaif-00z/AutoAnimeBot.git`
102+
- `git clone https://github.com/kaif-00z/AutoAnimeBot.git`
95103

96-
`nano .env` configure env as per [this](https://github.com/kaif-00z/AutoAnimeBot/blob/main/.sample.env) or using [this](https://github.com/kaif-00z/AutoAnimeBot/blob/main/auto_env_gen.py).
104+
- `nano .env` configure env as per [this](https://github.com/kaif-00z/AutoAnimeBot/blob/main/.sample.env) or using [this](https://github.com/kaif-00z/AutoAnimeBot/blob/main/auto_env_gen.py).
97105

98-
`bash pkg.sh`
106+
- `sudo docker build . -t ongoing` (make sure to install docker first using `sudo apt install docker.io`)
99107

100-
`bash run.sh`
108+
- `sudo docker run ongoing`
101109

102110
## Commands
103111

core/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of the AutoAnime distribution.
2-
# Copyright (c) 2024 Kaif_00z
2+
# Copyright (c) 2025 Kaif_00z
33
#
44
# This program is free software: you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by

core/executors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of the AutoAnime distribution.
2-
# Copyright (c) 2024 Kaif_00z
2+
# Copyright (c) 2025 Kaif_00z
33
#
44
# This program is free software: you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by

database/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of the AutoAnime distribution.
2-
# Copyright (c) 2024 Kaif_00z
2+
# Copyright (c) 2025 Kaif_00z
33
#
44
# This program is free software: you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by

functions/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of the AutoAnime distribution.
2-
# Copyright (c) 2024 Kaif_00z
2+
# Copyright (c) 2025 Kaif_00z
33
#
44
# This program is free software: you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by

functions/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of the AutoAnime distribution.
2-
# Copyright (c) 2024 Kaif_00z
2+
# Copyright (c) 2025 Kaif_00z
33
#
44
# This program is free software: you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by

functions/schedule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of the AutoAnime distribution.
2-
# Copyright (c) 2024 Kaif_00z
2+
# Copyright (c) 2025 Kaif_00z
33
#
44
# This program is free software: you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by

functions/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of the AutoAnime distribution.
2-
# Copyright (c) 2024 Kaif_00z
2+
# Copyright (c) 2025 Kaif_00z
33
#
44
# This program is free software: you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by
@@ -205,7 +205,7 @@ async def compress(self, dl, out, log_msg):
205205
if not total_frames:
206206
return False, "Unable to Count The Frames!"
207207
_progress = f"progress-{time.time()}.txt"
208-
cmd = f'''{Var.FFMPEG} -hide_banner -loglevel quiet -progress """{_progress}""" -i """{dl}""" -metadata "Encoded By"="https://github.com/kaif-00z/AutoAnimeBot/" -map 0:v -map 0:a -map 0:s -c:v libx264 -x265-params 'bframes=8:psy-rd=1:ref=3:aq-mode=3:aq-strength=0.8:deblock=1,1' -pix_fmt yuv420p -crf {Var.CRF} -c:a libopus -b:a 32k -ac 2 -ab 32k -vbr 2 -level 3.1 -threads {self.ffmpeg_threads} -preset veryfast """{out}""" -y'''
208+
cmd = f'''{Var.FFMPEG} -hide_banner -loglevel quiet -progress """{_progress}""" -i """{dl}""" -metadata "Encoded By"="https://github.com/kaif-00z/AutoAnimeBot/" -preset ultrafast -c:v libx265 -crf {Var.CRF} -map 0:v -c:a aac -map 0:a -c:s copy -map 0:s? -threads {self.ffmpeg_threads} """{out}""" -y'''
209209
process = await asyncio.create_subprocess_shell(
210210
cmd, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE
211211
)

functions/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of the AutoAnime distribution.
2-
# Copyright (c) 2024 Kaif_00z
2+
# Copyright (c) 2025 Kaif_00z
33
#
44
# This program is free software: you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by

0 commit comments

Comments
 (0)