From 7d3401e753d1b1a20718fea0356208fddd1ac746 Mon Sep 17 00:00:00 2001 From: johnayman0 <94765558+johnayman0@users.noreply.github.com> Date: Tue, 30 Jul 2024 04:48:04 +0300 Subject: [PATCH] fix best server api --- gofilepy/gofile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gofilepy/gofile.py b/gofilepy/gofile.py index 37b9e28..137fa91 100644 --- a/gofilepy/gofile.py +++ b/gofilepy/gofile.py @@ -58,8 +58,8 @@ def gofile_upload(path: list, open_urls: bool = False): highlighter = JSONHighlighter() - get_server = requests.get('https://api.gofile.io/getServer') - best_server = get_server.json()['data']['server'] + get_server = requests.get('https://api.gofile.io/servers') + best_server = get_server.json()['data']['servers'][0]['name'] files = []