diff --git a/bot/helper/ext_utils/fs_utils.py b/bot/helper/ext_utils/fs_utils.py index 41bd5d58bdd..aa04b3d82ce 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 c082f300e8c..090891cd639 100644 --- a/bot/helper/mirror_utils/upload_utils/pyrogramEngine.py +++ b/bot/helper/mirror_utils/upload_utils/pyrogramEngine.py @@ -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):