You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At least I get a 200 response code with {"status": "ok"}, but the file is not deleted.
The idea above is based on this function in this delete function in /app/main.py:
@routes.post(config.URL_PREFIX + 'delete')
async def delete(request):
post = await request.json()
ids = post.get('ids')
where = post.get('where')
if not ids or where not in ['queue', 'done']:
raise web.HTTPBadRequest()
status = await (dqueue.cancel(ids) if where == 'queue' else dqueue.clear(ids))
return web.Response(text=serializer.encode(status))
Hi,
how can i delete a file using the API?
Something along the lines of:
curl -X POST "https://metube.local.example.com/delete?file=/downloads/audio/myaudio.ogg"?
(this didn't work)
The text was updated successfully, but these errors were encountered: