mirror of
				https://github.com/karl0ss/GoGoDownloader.git
				synced 2025-10-31 14:44:18 +00:00 
			
		
		
		
	Add better last episode checker
This commit is contained in:
		
							parent
							
								
									02f275e13a
								
							
						
					
					
						commit
						7a382de2f6
					
				| @ -50,7 +50,7 @@ def gogodownloader(config): | ||||
|                 if res.status_code == 200: | ||||
|                     soup = BeautifulSoup(res.content, "html.parser") | ||||
|                     all_episodes = soup.find("ul", {"id": "episode_page"}) | ||||
|                     all_episodes = int(all_episodes.get_text().split("-")[-1].strip()) | ||||
|                     all_episodes = int(list(filter(None, "-".join(all_episodes.get_text().splitlines()).split("-")))[-1].strip()) | ||||
|                     break | ||||
|                 else: | ||||
|                     print(f"{ERR}Error 404: Anime not found. Please try again.") | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Robin Laevaert
						Robin Laevaert