Skip to content

Commit

Permalink
some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
phantom2152 authored Mar 1, 2022
1 parent 3b4fc59 commit f850049
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unzipper/modules/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ async def unzipper_cb(unzip_bot: Client, query: CallbackQuery):
archive = f"{download_path}/archive_from_{user_id}{os.path.splitext(url)[1]}"
await answer_query(query, f"**Trying to download!** \n\n**Url:** `{url}` \n\n`This may take a while, Go and grab a coffee ☕️!`", unzip_client=unzip_bot)
await download(url, archive)
await unzip_bot.send_message(f"Path {archive}")
e_time = time()
else:
return await query.message.edit("**Sorry I can't download that URL 🥺!**")
Expand Down Expand Up @@ -145,6 +146,7 @@ async def unzipper_cb(unzip_bot: Client, query: CallbackQuery):
spl_data = query.data.split("|")
file_path = f"{Config.DOWNLOAD_LOCATION}/{spl_data[1]}/extracted"
paths = await get_files(path=file_path)
await unzip_bot.send_message(f"Path after select: {paths}")
# Next level logic lmao
if not paths:
if os.path.isdir(f"{Config.DOWNLOAD_LOCATION}/{spl_data[1]}"):
Expand Down

0 comments on commit f850049

Please sign in to comment.