mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
Fix ep < 10 and htt:\\google to https;\\google
This commit is contained in:
parent
a485b3feb4
commit
bbed4d9d12
@ -27,7 +27,7 @@ def dynamic_format_number(n: int) -> str:
|
||||
Returns:
|
||||
- str: The formatted number as a string with a leading zero if the number is less than 9.
|
||||
"""
|
||||
if n < 9:
|
||||
if n < 10:
|
||||
width = len(str(n)) + 1
|
||||
else:
|
||||
width = len(str(n))
|
||||
|
@ -286,7 +286,7 @@ def check_internet():
|
||||
while True:
|
||||
try:
|
||||
# Attempt to open a connection to a website to check for internet connection
|
||||
urllib.request.urlopen("http://www.google.com", timeout=1)
|
||||
urllib.request.urlopen("https://www.google.com", timeout=3)
|
||||
console.log("[bold green]Internet is available![/bold green]")
|
||||
break
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user