Commit f0556f0f authored by Julian Rother's avatar Julian Rother
Browse files

Adapted ftpd to actual autoencode api

parent 5a865145
......@@ -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})
print("Unknown path:", path)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment