diff --git a/MBVL.py b/MBVL.py index 1876497..54aa48b 100644 --- a/MBVL.py +++ b/MBVL.py @@ -2,8 +2,6 @@ import requests -import os - import webbrowser file = open("generated_versions.html",mode="w") @@ -43,7 +41,7 @@ """) -print("Loading...") +print("Loading, this may take up to 5+ minutes.") url = "https://raw.githubusercontent.com/CrystalVortex/Minecraft-Bedrock-Version-Manager/main/versions.txt" response = requests.get(url, headers={'Cache-Control': 'no-cache'}) @@ -53,15 +51,15 @@ # Split the HTML content by lines and iterate over them lines = html_content.split('\n') for i, line in enumerate(lines, start=1): - line = line.strip() # Remove leading and trailing whitespace + line = line.strip() if line: # Check if the line is not empty after stripping version = Versions.get_by_version(line) - print(line+" <- Searching") + print("Version: "+line+" <- Found Link") file.write(f""" """) - file.write("\n") + file.write("\n\n\n") webbrowser.open("generated_versions.html")