Skip to content

Commit

Permalink
🛠️ Typos & Fixes ⛑️
Browse files Browse the repository at this point in the history
  • Loading branch information
kaif-00z committed Aug 26, 2024
1 parent 758e8b3 commit f7a2a59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- <details><summary>Click Here To See How Button Upload Look.</summary><img src="https://graph.org/file/3e9abc9ec7de6a26fd1a1.jpg" alt="btnul"/></details>
- Added Multi Thread Encoding
- Added Progress Bar of Encoding
- Added Option For Logs In Main Channel
- Added ForceSub
- Added 480p Support
- Added Broadcast
Expand Down
13 changes: 1 addition & 12 deletions functions/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@
from functions.config import Var
from libs.logger import LOGS

OK = {}


class Tools:
def __init__(self):
self.ffmpeg_threads = int(os.cpu_count() or 0) + 3
self.ffmpeg_threads = int(os.cpu_count() or 0) + 2

async def async_searcher(
self,
Expand Down Expand Up @@ -141,15 +139,6 @@ def init_dir(self):
if not os.path.isdir("downloads/"):
os.mkdir("downloads/")

def code(self, data):
OK.update({len(OK): data})
return str(len(OK) - 1)

def decode(self, key):
if OK.get(int(key)):
return OK[int(key)]
return

def hbs(self, size):
if not size:
return ""
Expand Down

0 comments on commit f7a2a59

Please sign in to comment.