Skip to content

Commit

Permalink
⚒️ fixes ⚒️
Browse files Browse the repository at this point in the history
  • Loading branch information
kaif-00z committed Oct 8, 2024
1 parent 4d2937b commit 39c50b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions functions/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ class Var:
RESTART_EVERDAY = config("RESTART_EVERDAY", default=True, cast=bool)
LOG_ON_MAIN = config("LOG_ON_MAIN", default=False, cast=bool)
FORCESUB_CHANNEL_LINK = config("FORCESUB_CHANNEL_LINK", default="", cast=str)

# Dev Configs

DEV_MODE = config("DEV_MODE", default=False, cast=bool)
5 changes: 4 additions & 1 deletion functions/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@

class Tools:
def __init__(self):
self.ffmpeg_threads = int(os.cpu_count() or 0) + 2
if Var.DEV_MODE:
self.ffmpeg_threads = int(os.cpu_count() or 0) + 2
else:
self.ffmpeg_threads = 2

async def async_searcher(
self,
Expand Down

0 comments on commit 39c50b1

Please sign in to comment.