Skip to content

Commit

Permalink
fix: some lgtm alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
DebXD committed Oct 20, 2022
1 parent b1877b0 commit 6a8138c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uploader/upload_file.py
@@ -1,4 +1,4 @@
import requests, ssl
import requests
from rich.console import Console
from uploader.get_ul_url import *

Expand All @@ -15,8 +15,8 @@ def ul_video(ul_url):
response = session.post(ul_url,files = files,headers=headers)
data = json.loads(response.text)
url = data.get('result').get('url')
size_in_bytes = data.get('result').get('size')
mb = int(size_in_bytes)/1024/1024
#size_in_bytes = data.get('result').get('size')
#mb = int(size_in_bytes)/1024/1024
console.print("Uploaded Successfully", style = "bold green")
return url
except Exception as e:
Expand Down

0 comments on commit 6a8138c

Please sign in to comment.