Skip to content
Snippets Groups Projects
Commit f0556f0f authored by Julian Rother's avatar Julian Rother
Browse files

Adapted ftpd to actual autoencode api

parent 5a865145
No related branches found
No related tags found
No related merge requests found
......@@ -18,8 +18,7 @@ def on_file_received(handler, path):
num += 1
suffix = '.'+str(num)
os.rename(RAW_TMP+'/'+path, RAW_TARGET+'/'+path+suffix)
path = RAW_PREFIX+'/'+path+suffix
requests.get(API_BASEURL+'/internal/sort/raw', params={'apikey': API_APIKEY, 'path': path})
requests.get(API_BASEURL+'/internal/sort/autoencode', params={'apikey': API_APIKEY, 'path': path+suffix})
else:
print("Unknown path:", path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment