Skip to content
This repository was archived by the owner on May 15, 2021. It is now read-only.

Commit

Permalink
Update upload.py
Browse files Browse the repository at this point in the history
  • Loading branch information
code-rgb committed Nov 23, 2020
1 parent 11b935e commit 50cfa83
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions userge/plugins/misc/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
LOGGER = userge.getLogger(__name__)
CHANNEL = userge.getCLogger(__name__)

LOGO_PATH = 'resources/userge.png'
LOGO_PATH = 'resources/logo.png'


@userge.on_cmd("rename", about={
Expand Down Expand Up @@ -172,13 +172,13 @@ async def doc_upload(message: Message, path, del_path: bool = False, extra: str
await sent.edit(u_e)
raise u_e
else:
await sent.delete()vid_upload
await sent.delete()
await finalize(message, msg, start_t)
if os.path.exists(strpath) and del_path:
os.remove(strpath)


async def (message: Message, path, del_path: bool = False, extra: str = ''):
async def vid_upload(message: Message, path, del_path: bool = False, extra: str = ''):
strpath = str(path)
thumb = await get_thumb(strpath)
duration = 0
Expand Down Expand Up @@ -214,7 +214,6 @@ async def (message: Message, path, del_path: bool = False, extra: str = ''):
os.remove(str(path))
return msg


async def audio_upload(message: Message, path, del_path: bool = False, extra: str = ''):
title = None
artist = None
Expand Down

0 comments on commit 50cfa83

Please sign in to comment.