Commit f0556f0f authored by Julian Rother's avatar Julian Rother

Adapted ftpd to actual autoencode api

parent 5a865145
...@@ -18,8 +18,7 @@ def on_file_received(handler, path): ...@@ -18,8 +18,7 @@ def on_file_received(handler, path):
num += 1 num += 1
suffix = '.'+str(num) suffix = '.'+str(num)
os.rename(RAW_TMP+'/'+path, RAW_TARGET+'/'+path+suffix) os.rename(RAW_TMP+'/'+path, RAW_TARGET+'/'+path+suffix)
path = RAW_PREFIX+'/'+path+suffix requests.get(API_BASEURL+'/internal/sort/autoencode', params={'apikey': API_APIKEY, 'path': path+suffix})
requests.get(API_BASEURL+'/internal/sort/raw', params={'apikey': API_APIKEY, 'path': path})
else: else:
print("Unknown path:", path) print("Unknown path:", path)
......
Markdown is supported
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