From c455b21ebbcfca47849603c11eff6cee0c6fb0f0 Mon Sep 17 00:00:00 2001 From: Niklas Fiekas Date: Wed, 19 Jun 2024 23:21:55 +0200 Subject: [PATCH] update lichess mirror urls --- syzygy_tables_info/server.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/syzygy_tables_info/server.py b/syzygy_tables_info/server.py index a2d45da..94d4d0f 100644 --- a/syzygy_tables_info/server.py +++ b/syzygy_tables_info/server.py @@ -575,21 +575,19 @@ async def download_txt(request: aiohttp.web.Request) -> aiohttp.web.Response: base = "https://tablebase.lichess.ovh/tables/standard" if len(table) <= 6: if include_wdl: - result.append("{}/3-4-5/{}.rtbw".format(base, table)) + result.append("{}/3-4-5-wdl/{}.rtbw".format(base, table)) if include_dtz: - result.append("{}/3-4-5/{}.rtbz".format(base, table)) + result.append("{}/3-4-5-dtz/{}.rtbz".format(base, table)) elif len(table) <= 7: if include_wdl: result.append("{}/6-wdl/{}.rtbw".format(base, table)) if include_dtz: result.append("{}/6-dtz/{}.rtbz".format(base, table)) else: - suffix = "pawnful" if "P" in table else "pawnless" - w, b = table.split("v") if include_wdl: - result.append("{}/7/{}v{}_{}/{}.rtbw".format(base, len(w), len(b), suffix, table)) + result.append("{}/7-wdl/{}.rtbw".format(base, table)) if include_dtz: - result.append("{}/7/{}v{}_{}/{}.rtbz".format(base, len(w), len(b), suffix, table)) + result.append("{}/7-dtz/{}.rtbz".format(base, table)) elif source in ["sesse", "sesse.net", "tablebase.sesse.net"]: base = "http://tablebase.sesse.net/syzygy" if len(table) <= 6: