Skip to content

Commit

Permalink
Added downloading and uploading file names
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylern authored Dec 4, 2021
1 parent cb29b57 commit 507e943
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ async def something():
t,
e,
tt,
"**📥 Downloading...**",
"**📥 Downloading**\n__{filename}__",
)
),
)
Expand Down Expand Up @@ -211,7 +211,7 @@ async def something():
file=f,
name=out,
progress_callback=lambda d, t: asyncio.get_event_loop().create_task(
progress(d, t, nnn, ttt, "**📤 Uploading...**")
progress(d, t, nnn, ttt, "**📤 Uploading**\n__{out.replace(f'encode/', '')}__")
),
)
await nnn.delete()
Expand Down
6 changes: 3 additions & 3 deletions bot/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ async def encod(event):
t,
xxx,
ttt,
"**📥 Downloading...**",
f"**📥 Downloading**\n__{filename}__",
)
),
)
Expand All @@ -177,7 +177,7 @@ async def encod(event):
event.media,
dir,
progress_callback=lambda d, t: asyncio.get_event_loop().create_task(
progress(d, t, xxx, ttt, "**📥 Downloading...**")
progress(d, t, xxx, ttt, f"**📥 Downloading**\n__{filename}__")
),
)
except Exception as er:
Expand Down Expand Up @@ -227,7 +227,7 @@ async def encod(event):
file=f,
name=out,
progress_callback=lambda d, t: asyncio.get_event_loop().create_task(
progress(d, t, nnn, ttt, "**📤 Uploading...**")
progress(d, t, nnn, ttt, f"**📤 Uploading**\n__{out.replace(f'encode/', '')}__")
),
)
await nnn.delete()
Expand Down

0 comments on commit 507e943

Please sign in to comment.