Skip to content

Commit ec340d5

Browse files
author
Sam-Max
committed
Revert "fix mkv files not uploading as video"
This reverts commit dbda5e3.
1 parent 7d16ad1 commit ec340d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/helper/mirror_leech_utils/upload_utils/telegram_uploader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ async def __upload_file(self, up_path, file):
139139
disable_notification=True,
140140
progress= self.__upload_progress)
141141
if is_video:
142-
if not up_path.upper().endswith(("MP4")):
142+
if not up_path.upper().endswith(("MKV", "MP4")):
143143
new_path = up_path.split(".")[0] + ".mp4"
144144
osrename(up_path, new_path)
145145
up_path = new_path

0 commit comments

Comments
 (0)