Skip to content

Commit

Permalink
spam
Browse files Browse the repository at this point in the history
Signed-off-by: anas <[email protected]>
  • Loading branch information
anasty17 committed Sep 22, 2021
1 parent 11c3e5a commit 8d0ff42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bot/helper/ext_utils/fs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def split(path, size, split_size, start_time=0, i=1):
if base_name.upper().endswith(VIDEO_SUFFIXES):
base_name, extension = os.path.splitext(path)
metadata = extractMetadata(createParser(path))
total_duration = metadata.get('duration').seconds - 5
total_duration = metadata.get('duration').seconds - 8
while start_time < total_duration:
parted_name = "{}.part{}{}".format(str(base_name), str(i).zfill(2), str(extension))
out_path = os.path.join(out_dir, parted_name)
Expand Down
2 changes: 1 addition & 1 deletion bot/helper/mirror_utils/upload_utils/pyrogramEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def upload(self):
msgs_dict[file] = self.sent_msg.message_id
os.remove(up_path)
self.last_uploaded = 0
LOGGER.info("Leeching Done!")
LOGGER.info(f"Leech Done: {self.name}")
self.__listener.onUploadComplete(self.name, None, msgs_dict, None, None)

def upload_file(self, up_path, file):
Expand Down

0 comments on commit 8d0ff42

Please sign in to comment.