Skip to content

Commit

Permalink
Apply server fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alyetama committed Aug 12, 2024
1 parent a78664f commit 190677c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion gofilepy/gofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 190677c

Please sign in to comment.