Fix bedrock url

This commit is contained in:
amcmanu3 2024-03-02 16:53:17 -05:00
parent 6759d840f3
commit 6e28da4195

View File

@ -117,7 +117,7 @@ class Helpers:
Get latest bedrock executable url \n\n Get latest bedrock executable url \n\n
returns url if successful, False if not returns url if successful, False if not
""" """
url = "https://minecraft.net/en-us/download/server/bedrock/" url = "https://www.minecraft.net/en-us/download/server/bedrock/"
headers = { headers = {
"Accept-Encoding": "identity", "Accept-Encoding": "identity",
"Accept-Language": "en", "Accept-Language": "en",
@ -127,8 +127,8 @@ class Helpers:
"Chrome/104.0.0.0 Safari/537.36" "Chrome/104.0.0.0 Safari/537.36"
), ),
} }
target_win = 'https://minecraft.azureedge.net/bin-win/[^"]*' target_win = 'https://www.minecraft.azureedge.net/bin-win/[^"]*'
target_linux = 'https://minecraft.azureedge.net/bin-linux/[^"]*' target_linux = 'https://www.minecraft.azureedge.net/bin-linux/[^"]*'
try: try:
# Get minecraft server download page # Get minecraft server download page