Fix URL handling for Steamrip games and improve scraping of direct download links from buzzheavier.com

This commit is contained in:
Noe
2024-12-22 14:26:49 +01:00
parent 60dbb8e4df
commit b041257cfb
+4 -3
View File
@@ -95,18 +95,17 @@ game_titles = clean_game_titles(list(games_dict.keys()), badphrases)
if game_titles:
for title in game_titles:
print(title)
pass
else:
print("No game titles found. Please report this on Github.")
def search():
search_query = input("Enter a game title to search: ")
search_results = search_games(search_query, game_titles)
if search_results:
print("Search Results:")
for idx, result in enumerate(search_results, start=1):
print(f"{idx}. {result}")
try:
selection = int(input("Select a game by entering the corresponding number: "))
if 1 <= selection <= len(search_results):
@@ -127,3 +126,5 @@ if search_results:
print("Invalid selection.")
else:
print("No results found.")
search()
search()