Skip to content

Commit

Permalink
Update upload_to_tg.py
Browse files Browse the repository at this point in the history
Added 3GP , M4V support for tg Streamable Upload
  • Loading branch information
NinjaTG authored Jun 10, 2021
1 parent f62cbde commit 0cb9607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tobrot/helper_funcs/upload_to_tg.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ async def upload_single_file(
"<b>Trying to upload</b>\n\n📙<b> File Name</b>: <code>{}</code>".format(os.path.basename(local_file_name))
)
prog = Progress(from_user, client, message_for_progress_display)
if local_file_name.upper().endswith(("MKV", "MP4", "WEBM")):
if local_file_name.upper().endswith(("MKV", "MP4", "WEBM", "M4V", "3GP")):
duration = 0
try:
metadata = extractMetadata(createParser(local_file_name))
Expand Down

0 comments on commit 0cb9607

Please sign in to comment.