Skip to content

Commit

Permalink
Update API URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Alyetama committed Dec 6, 2023
1 parent 387207c commit edd9171
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ options:
complete (macOS-only)
-e, --export Export upload response(s) to a JSON file
-vv, --verbose Show more information
-v, --version show program's version number and exit
```

## 📕 Examples
Expand Down
1 change: 0 additions & 1 deletion gofilepy/__version__.py

This file was deleted.

8 changes: 1 addition & 7 deletions gofilepy/gofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
from rich.panel import Panel
from rich.progress import track

from .__version__ import __version__


def upload(file: str, best_server: str, folder_id: Optional[str] = None):
f_obj = Path(file)
Expand Down Expand Up @@ -60,7 +58,7 @@ def gofile_upload(path: list,
open_urls: bool = False):
highlighter = JSONHighlighter()

get_server = requests.get('https://apiv2.gofile.io/getServer')
get_server = requests.get('https://api.gofile.io/getServer')
best_server = get_server.json()['data']['server']

files = []
Expand Down Expand Up @@ -171,10 +169,6 @@ def opts():
parser.add_argument('path',
nargs='+',
help='Path to the file(s) and/or folder(s)')
parser.add_argument('-v',
'--version',
action='version',
version=f'%(prog)s {__version__}')
return parser.parse_args()


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.0"
version = "0.3.1"
description = "Upload files to Gofile.io"
authors = ["Mohammad Alyetama <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit edd9171

Please sign in to comment.