From 8d0ff42727be8df3db0379cd6d0d02a6daf566da Mon Sep 17 00:00:00 2001 From: anas Date: Wed, 22 Sep 2021 07:17:13 +0300 Subject: [PATCH] spam Signed-off-by: anas --- bot/helper/ext_utils/fs_utils.py | 2 +- bot/helper/mirror_utils/upload_utils/pyrogramEngine.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/helper/ext_utils/fs_utils.py b/bot/helper/ext_utils/fs_utils.py index 41bd5d5..aa04b3d 100644 --- a/bot/helper/ext_utils/fs_utils.py +++ b/bot/helper/ext_utils/fs_utils.py @@ -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) diff --git a/bot/helper/mirror_utils/upload_utils/pyrogramEngine.py b/bot/helper/mirror_utils/upload_utils/pyrogramEngine.py index c082f30..090891c 100644 --- a/bot/helper/mirror_utils/upload_utils/pyrogramEngine.py +++ b/bot/helper/mirror_utils/upload_utils/pyrogramEngine.py @@ -50,7 +50,7 @@ class TgUploader: 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):