Skip to content

Commit

Permalink
Merge pull request #6 from johnayman0/main
Browse files Browse the repository at this point in the history
fix best server api
  • Loading branch information
Alyetama authored Jul 30, 2024
2 parents a9e088a + 7d3401e commit cd5d5e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gofilepy/gofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down

0 comments on commit cd5d5e1

Please sign in to comment.