mirror of
https://github.com/karl0ss/GoGoDownloader.git
synced 2025-04-26 11:39:22 +01:00
replace litterals and cross platform cls
This commit is contained in:
parent
b3b02e040c
commit
bc957b0607
@ -17,7 +17,7 @@ except AttributeError:
|
|||||||
|
|
||||||
def gogodownloader(config):
|
def gogodownloader(config):
|
||||||
CURRENT_DOMAIN = config["CurrentGoGoAnimeDomain"]
|
CURRENT_DOMAIN = config["CurrentGoGoAnimeDomain"]
|
||||||
os.system("cls")
|
os.system("cls" if os.name == "nt" else "clear")
|
||||||
while True:
|
while True:
|
||||||
print(
|
print(
|
||||||
f""" {Fore.LIGHTBLUE_EX}
|
f""" {Fore.LIGHTBLUE_EX}
|
||||||
@ -166,7 +166,7 @@ def gogodownloader(config):
|
|||||||
|
|
||||||
use_again = input(f"{IN}Do you want to use the app again? (y|n) > ").lower()
|
use_again = input(f"{IN}Do you want to use the app again? (y|n) > ").lower()
|
||||||
if use_again == "y":
|
if use_again == "y":
|
||||||
os.system("cls")
|
os.system("cls" if os.name == "nt" else "clear")
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ class gogoanime:
|
|||||||
)
|
)
|
||||||
soup = BeautifulSoup(page.content, "html.parser")
|
soup = BeautifulSoup(page.content, "html.parser")
|
||||||
loginCheck = soup(text=re.compile("Logout"))
|
loginCheck = soup(text=re.compile("Logout"))
|
||||||
if len(loginCheck) is 0:
|
if len(loginCheck) == 0:
|
||||||
raise Exception(
|
raise Exception(
|
||||||
"User is not logged in, make sure account has been activated"
|
"User is not logged in, make sure account has been activated"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user