Skip to content

Commit

Permalink
fix:pylintings
Browse files Browse the repository at this point in the history
  • Loading branch information
kalanakt committed Jan 28, 2024
1 parent be62d6f commit 44f0678
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Uploader/dl_button.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""Module for handling download callback and related functions"""

import asyncio
from datetime import datetime
import logging
import os
import time
import aiohttp
import asyncio
import logging
from datetime import datetime
from Uploader.functions.display_progress import (
progress_for_pyrogram,
humanbytes,
Expand Down Expand Up @@ -40,7 +40,7 @@ async def ddl_call_back(bot, update):
elif entity.type == "url":
o = entity.offset
length = entity.length
youtube_dl_url = youtube_dl_url[o : o + length]
youtube_dl_url = youtube_dl_url[o: o + length]
if youtube_dl_url is not None:
youtube_dl_url = youtube_dl_url.strip()
if custom_file_name is not None:
Expand All @@ -52,7 +52,7 @@ async def ddl_call_back(bot, update):
elif entity.type == "url":
o = entity.offset
length = entity.length
youtube_dl_url = youtube_dl_url[o : o + length]
youtube_dl_url = youtube_dl_url[o: o + length]

description = custom_file_name

Expand Down Expand Up @@ -224,8 +224,8 @@ async def ddl_call_back(bot, update):
disable_web_page_preview=True,
)

logger.info(f"Downloaded in: {str(time_taken_for_download)}")
logger.info(f"Uploaded in: {str(time_taken_for_upload)}")
logger.info("Downloaded in: %s", str(time_taken_for_download))
logger.info("Uploaded in: %s", str(time_taken_for_upload))
else:
await bot.edit_message_text(
text=Translation.NO_VOID_FORMAT_FOUND.format("Incorrect Link"),
Expand Down

1 comment on commit 44f0678

@vercel
Copy link

@vercel vercel bot commented on 44f0678 Jan 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

all-url-uploader – ./

urluploader.vercel.app
all-url-uploader-netronk.vercel.app
all-url-uploader-git-main-netronk.vercel.app

Please sign in to comment.