mirror of
https://github.com/simon987/nyaa.git
synced 2025-04-19 02:06:45 +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…
x
Reference in New Issue
Block a user