From 913ff68e1e215c899127b8c685d73f17108cfd82 Mon Sep 17 00:00:00 2001 From: Nalin <79359909+NotNalin@users.noreply.github.com> Date: Fri, 1 Jul 2022 22:53:43 +0400 Subject: [PATCH] fix for list_servers() returning an empty list --- python_aternos/atclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_aternos/atclient.py b/python_aternos/atclient.py index 32693e5..fa5cb8f 100644 --- a/python_aternos/atclient.py +++ b/python_aternos/atclient.py @@ -193,7 +193,7 @@ class Client: serverstree = lxml.html.fromstring(serverspage.content) servers = serverstree.xpath( - '//div[contains(@class,"servers ")]/div' + '/html/body/div[1]/main/div[3]/section/div[1]/div[2]/div' '/div[@class="server-body"]/@data-id' ) self.refresh_servers(servers)