This commit is contained in:
levina 2022-02-01 16:58:05 +07:00 committed by GitHub
parent c5044d2372
commit 83dc9f972e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,7 @@ def song(_, message):
audio_file = ydl.prepare_filename(info_dict)
ydl.process_info(info_dict)
rep = f"• uploader @{bn}"
host = str(info_dict["uploader"])
secmul, dur, dur_arr = 1, 0, duration.split(":")
for i in range(len(dur_arr) - 1, -1, -1):
dur += int(float(dur_arr[i])) * secmul
@ -80,6 +81,7 @@ def song(_, message):
message.reply_audio(
audio_file,
caption=rep,
performer=host,
thumb=thumb_name,
parse_mode="md",
title=title,