Fix minor problems with user IDs and datetime
This commit is contained in:
@@ -55,16 +55,13 @@ async def message_handler(_, message: Message):
|
||||
"No TikTok URLs found! Nothing to download!"
|
||||
)
|
||||
|
||||
success_count = 0
|
||||
for i, url in enumerate(urls):
|
||||
msg = f"Downloading video {i+1}/{len(urls)}..."
|
||||
log.info(msg)
|
||||
await message.reply_text(msg)
|
||||
outcome = utils.download_tt_video(STORAGE, url)
|
||||
success_count += 1 if outcome else 0
|
||||
utils.download_tt_video(STORAGE, url)
|
||||
|
||||
await message.reply_text(f"{success_count}/{len(urls)} "
|
||||
"video(s) downloaded")
|
||||
await message.reply_text("Done.")
|
||||
|
||||
|
||||
@app.on_message(filters.media)
|
||||
|
||||
Reference in New Issue
Block a user