mirror of
				https://github.com/karl0ss/GoGoDownloader.git
				synced 2025-10-31 14:44:18 +00: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): | ||||
|     CURRENT_DOMAIN = config["CurrentGoGoAnimeDomain"] | ||||
|     os.system("cls") | ||||
|     os.system("cls" if os.name == "nt" else "clear") | ||||
|     while True: | ||||
|         print( | ||||
|             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() | ||||
|         if use_again == "y": | ||||
|             os.system("cls") | ||||
|             os.system("cls" if os.name == "nt" else "clear") | ||||
|         else: | ||||
|             break | ||||
| 
 | ||||
|  | ||||
| @ -126,7 +126,7 @@ class gogoanime: | ||||
|         ) | ||||
|         soup = BeautifulSoup(page.content, "html.parser") | ||||
|         loginCheck = soup(text=re.compile("Logout")) | ||||
|         if len(loginCheck) is 0: | ||||
|         if len(loginCheck) == 0: | ||||
|             raise Exception( | ||||
|                 "User is not logged in, make sure account has been activated" | ||||
|             ) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 karl.hudgell
						karl.hudgell