Queue persistence for download and completed

This commit is contained in:
Erazor2 2022-01-15 12:17:12 +00:00
parent 622ca428e3
commit eb1f031b33
3 changed files with 79 additions and 17 deletions

View file

@ -92,6 +92,7 @@ async def delete(request):
@sio.event
async def connect(sid, environ):
await dqueue.importQueue()
await sio.emit('all', serializer.encode(dqueue.get()), to=sid)
@routes.get(config.URL_PREFIX)