mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 09:19:59 +00:00
Point v2 upload script to v2 endpoint (oops)
This commit is contained in:
parent
d7309884fe
commit
52f0050085
|
@ -9,7 +9,7 @@ NYAA_HOST = 'https://nyaa.si'
|
|||
SUKEBEI_HOST = 'https://sukebei.nyaa.si'
|
||||
|
||||
API_BASE = '/api'
|
||||
API_UPLOAD = API_BASE + '/upload'
|
||||
API_UPLOAD = API_BASE + '/v2/upload'
|
||||
|
||||
NYAA_CATS = '''1_1 - Anime - AMV
|
||||
1_2 - Anime - English
|
||||
|
@ -176,4 +176,4 @@ if __name__ == "__main__":
|
|||
else:
|
||||
print("[Uploaded] {url} - '{name}'".format(**response))
|
||||
if args.magnet:
|
||||
print(response['magnet'])
|
||||
print(response['magnet'])
|
||||
|
|
Loading…
Reference in a new issue