diff --git a/gofilepy/gofile.py b/gofilepy/gofile.py index 137fa91..e2ebbb9 100644 --- a/gofilepy/gofile.py +++ b/gofilepy/gofile.py @@ -59,7 +59,9 @@ def gofile_upload(path: list, highlighter = JSONHighlighter() get_server = requests.get('https://api.gofile.io/servers') - best_server = get_server.json()['data']['servers'][0]['name'] + servers = get_server.json() + best_server = servers['data']['servers'][0]['name'] + files = [] diff --git a/pyproject.toml b/pyproject.toml index 8667afd..aea1beb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "gofilepy" -version = "0.3.2" +version = "0.3.3" description = "Upload files to Gofile.io" authors = ["Mohammad Alyetama "] license = "MIT"